https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-docker-registry-on-ubuntu-14-04
fedora:
$ sudo cp devdockerCA.crt /etc/pki/ca-trust/source/anchors/
$ sudo update-ca-trust
$ curl https://dockerreg.99cloud.net
"\"docker-registry server\""
使用自己的库:
docker pull registry/repo:tag where registry is something like a.b.com. 如果registry不包括".",它就会到默认的registry下去docker.io
用hosts访问gcr.io
在创建了自己的registry后,可以用自己的库存放那些需要翻墙才能访问的image, 比如gcr.io下的。方法如下:
- 203.166.175.250 dockerreg.99cloud.net
然后改动$ cat /etc/sysconfig/docker 添加insecure-registry
# /etc/sysconfig/docker
# Modify these options if you want to change the way the docker daemon runs
OPTIONS='--selinux-enabled --bip=10.1.27.1/24 --mtu=1472'
DOCKER_CERT_PATH=/etc/docker
# Enable insecure registry communication by appending the registry URL
# to the INSECURE_REGISTRY variable below and uncommenting it
INSECURE_REGISTRY='--insecure-registry quay.io'