sunfmin / notebook

My Note Book
2 stars 0 forks source link

Mac上用docker-machine创建可以Push不带ssl的registry #1

Open sunfmin opened 8 years ago

sunfmin commented 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环境变量。