Moon Light Box

Time is Money

Docker - Insecure Registry

| Comments

Use CentOS7.

Docker 1.10.3

# vim /etc/sysconfig/docker

Uncomment this line.
INSECURE_REGISTRY='--insecure-registry 192.168.1.1:5566 --insecure-registry 192.168.1.2:5566'

# systemctl start docker

Docker 1.12+ use JSON format

# vim /etc/docker/daemon.json

Add this line.
{ "insecure-registries":["192.168.1.1:5566", "192.168.1.2:5566"] }

# systemctl restart docker

Docker Login

# docker login -u ACCOUNT 192.168.1.1:5566
# docker login -u ACCOUNT 192.168.1.2:5566

http://www.jianshu.com/p/8f90b4a457d4

Comments

comments powered by Disqus