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

前端 未结 6 497
渐次进展
渐次进展 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条回答
  •  不思量自难忘°
    2021-01-14 15:26

    Run Docker with sudo. If that doesn't work, try running the daemon in the following way:

    sudo nohup docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock &
    

提交回复
热议问题