spotify / dockerfile-mode

An emacs mode for handling Dockerfiles
Apache License 2.0
535 stars 79 forks source link

Permission Denied when building image from buffer #53

Closed antonydellavecchia closed 1 year ago

antonydellavecchia commented 4 years ago

I have configure docker to run without sudo, and this build works in an external terminal, but it won't work in eshell or shell

`docker build --tag liveeo-mapbox-uploader -f /home/antony/live-eo-mapbox-uploader/Dockerfile /home/antony/live-eo-mapbox-uploader/ ERRO[0000] failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied 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.40/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&session=elojpw5y74rjocy1o4j5931d6&shmsize=0&t=liveeo-mapbox-uploader&target=&ulimits=null&version=1: dial unix /var/run/docker.sock: connect: permission denied

Compilation exited abnormally with code 1 at Wed Mar 11 12:01:27 `