Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? inside a Dockerfile

前端 未结 6 500
渐次进展
渐次进展 2021-01-14 15:10

I have the following Dockerfile:

FROM ubuntu

ENV NPM_CONFIG_LOGLEVEL warn
ENV admin_user=\"PeerAdmin\" network_name=$1 version=$2 hversion=hlfv1     fabrik_         


        
6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-14 15:41

    It might be the case that the user with which you have logged in to docker engine is not having the correct permission. You can add the user to docker group with below command:

    sudo usermod -a -G docker $USER

    $USER is the username of the currently logged in user. Thanks

提交回复
热议问题