Open sunfmin opened 8 years ago
docker-machine create -d virtualbox --engine-insecure-registry yourregistry.com:5000 default
记得执行
Felix:worklog sunfmin$ docker-machine env export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://192.168.99.100:2376" export DOCKER_CERT_PATH="/Users/sunfmin/.docker/machine/machines/default" export DOCKER_MACHINE_NAME="default" # Run this command to configure your shell: # eval $(docker-machine env)
里面的eval $(docker-machine env)来设置当前的docker环境变量。
eval $(docker-machine env)
记得执行
里面的
eval $(docker-machine env)
来设置当前的docker环境变量。