# Installing extension inside a Dockerfile

**URL:** https://discourse.slicer.org/t/installing-extension-inside-a-dockerfile/13925
**Category:** Support
**Created:** [October 7, 2020, 5:17pm UTC](https://discourse.slicer.org/t/installing-extension-inside-a-dockerfile/13925 "2020-10-07T17:17:40Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [October 8, 2020, 4:25am UTC](https://discourse.slicer.org/t/installing-extension-inside-a-dockerfile/13925/9 "2020-10-08T04:25:01Z")

</div>

assuming the extensions to be installed in extensions.py

docker command  
`RUN /opt/slicer/bin/Slicer --no-main-window --python-script ./extensions.py`  
fails due to lack of X environment. specific error:

`qt.qpa.screen: QXcbConnection: could not connect to display Could not connect to any X display`

---

_[View the full topic](https://discourse.slicer.org/t/installing-extension-inside-a-dockerfile/13925)._
