Mac OS X sudo docker Cannot connect to the Docker daemon. Is the docker daemon running on this host?

前端 未结 6 2013
甜味超标
甜味超标 2020-12-24 15:14

I installed docker and there seems to be some issue.

$ docker ps

CONTAINER ID IMAGE COMMAND

6条回答
  •  情歌与酒
    2020-12-24 15:31

    You need to set up your shell to use Docker: eval $(docker-machine env default) Where does this command come from? Run docker-machine env default and you'll see something like the following:

    $ docker-machine env default
    export DOCKER_TLS_VERIFY="1"
    export DOCKER_HOST="tcp://192.168.99.100:2376"
    export DOCKER_CERT_PATH="/Users/eric/.docker/machine/machines/default"
    export DOCKER_MACHINE_NAME="default"
    # Run this command to configure your shell: 
    # eval $(docker-machine env default)
    

    Also you may or may not have to simply start the Docker host beforehand via: docker-machine start default

提交回复
热议问题