Permission denied to Docker daemon socket at unix:///var/run/docker.sock

前端 未结 5 632
感情败类
感情败类 2021-01-31 23:04

I have this Dockerfile:

FROM chekote/gulp:latest 

USER root
RUN apt-get update \\
      && apt-get upgrade -y \\
      && apt-get i         


        
5条回答
  •  情话喂你
    2021-01-31 23:39

    The error has nothing to do with docker pull or docker image subcommand, but rather that you need to call the docker command as either a user with write access to the docker socket (for example, by being root, using sudo, or by being in the docker group).

提交回复
热议问题