# Install Xblock on EC2

**URL:** <https://discuss.openedx.org/t/install-xblock-on-ec2/5385>\
**Category:** Site Operations Help\
**Tags:** how-to\
**Created:** [July 12, 2021, 8:36am UTC](https://discuss.openedx.org/t/install-xblock-on-ec2/5385 "2021-07-12T08:36:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![William\_Kowalski](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/william_kowalski/32/2658_2.png) [@William\_Kowalski](https://discuss.openedx.org/u/William_Kowalski)\
**Post date:** [July 12, 2021, 1:05pm UTC](https://discuss.openedx.org/t/install-xblock-on-ec2/5385/5 "2021-07-12T13:05:06Z")

</div>

Yes, tutor installation, everything completely default so far.  
I referred to your link, which I had seen and tried earlier. I tried the example given:  
`echo "git+https://github.com/open-craft/xblock-poll.git" >> "$(tutor config printroot)/env/build/openedx/requirements/private.txt"`  
and that goes through with no error. But when I try to rebuild the docker image with:  
`tutor images build openedx`  
I get the following lengthy error message:  
`Building image docker.io/overhangio/openedx:11.1.3`  
`docker build -t docker.io/overhangio/openedx:11.1.3 /home/ubuntu/.local/share/tutor/env/build/openedx`

```auto
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=docker.io%2Foverhangio%2Fopenedx%3A11.1.3&target=&ulimits=null&version=1: dial unix /var/run/docker.sock: connect: permission denied

Error: Command failed with status 1: docker build -t docker.io/overhangio/openedx:11.1.3 /home/ubuntu/.local/share/tutor/env/build/openedx

```

---

_[View the full topic](https://discuss.openedx.org/t/install-xblock-on-ec2/5385)._
