I have this Dockerfile:
Dockerfile
FROM chekote/gulp:latest USER root RUN apt-get update \\ && apt-get upgrade -y \\ && apt-get i
A quick way to avoid that. Add your user to the group.
sudo gpasswd -a $USER docker
Then set the proper permissions.
sudo setfacl -m user::rw /var/run/docker.sock
Should be good from there.