我在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
知道我做错了吗?