Docker-machine无法连接到Docker守护程序。 docker守护程序是否在此主机上运行?

时间:2016-03-17 04:50:41

标签: macos docker docker-machine

我在mac os x 10.10.5上使用Docker我主要遇到各种各样的权限问题。我能够创建sudo docker-machine create --driver virtualbox test然后创建sudo docker-machine env test

的结果
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.102:2376"
export DOCKER_CERT_PATH="/Users/michaelaubry/.docker/machine/machines/test"
export DOCKER_MACHINE_NAME="test"
# Run this command to configure your shell:
# eval $(docker-machine env test)

然后我运行eval $(docker-machine env test),结果为open /Users/michaelaubry/.docker/machine/machines/test/config.json: permission denied

我运行sudo chown michaelaubry:staff /Users/michaelaubry/.docker/machine/machines/test/config.json仍然open /Users/michaelaubry/.docker/machine/machines/test/config.json: permission denied

然后我试试这个

~ » sudo chown michaelaubry:staff /Users/michaelaubry/.docker/machine/machines/test/
~ » sudo chown michaelaubry:staff /Users/michaelaubry/.docker/machine/machines/
~ » sudo chown michaelaubry:staff /Users/michaelaubry/.docker/machine/
~ » sudo chown michaelaubry:staff /Users/michaelaubry/.docker/
~ » eval $(docker-machine env test)
Error checking TLS connection: machine does not exist

知道我做错了吗?

0 个答案:

没有答案