docker error: /var/run/docker.sock: no such file or directory

后端 未结 11 1016
轻奢々
轻奢々 2020-12-07 14:52

I am new to docker. I have a shell script that loads data into impala and I want a docker file that runs builds an image and run the container. I am on mac, installed boot2d

11条回答
  •  情深已故
    2020-12-07 15:23

    docker pull will fail if docker service is not running. Make sure it is running by

    :~$ ps aux | grep docker
    root     18745  1.7  0.9 284104 13976 ?   Ssl  21:19   0:01 /usr/bin/docker -d
    

    If it is not running, you can start it by

    sudo service docker start

    For Ubuntu 15 and above use

    sudo systemctl start docker

提交回复
热议问题