WALL-E / Journey-to-the-docker

docker游记
The Unlicense
1 stars 0 forks source link

docker不使用https #9

Open WALL-E opened 7 years ago

WALL-E commented 7 years ago

修改配置文件

docker-machine安装

vim /etc/systemd/system/docker.service

yum安装

vim /etc/sysconfig/docker OPTIONS='--insecure-registry 172.28.32.23:8808 --log-driver=journald'

sh安装

vim /etc/default/docker DOCKER_OPTS="$DOCKER_OPTS --insecure-registry=104.131.173.242:5000"

重启服务

systemctl daemon-reload systemctl stop docker systemctl start docker

检查一下,是否生效

[root@vagrant-101 ~]# ps aux|grep docker
root     21546  1.8  4.6 807056 47728 ?        Ssl  04:23   0:08 /usr/bin/docker-current daemon --exec-opt native.cgroupdriver=systemd --selinux-enabled --log-driver=journald --insecure-registry 172.28.32.23:8808
root     21677  0.0  1.5 253900 15456 ?        Sl   04:23   0:00 docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 1514 -container-ip 172.18.0.4 -container-port 514
root     21705  0.0  1.4 253900 14768 ?        Sl   04:23   0:00 docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 443 -container-ip 172.18.0.5 -container-port 443
root     21712  0.0  1.4 253900 15004 ?        Sl   04:23   0:00 docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 80 -container-ip 172.18.0.5 -container-port 80
root     22359  0.0  0.0 112648   976 pts/0    R+   04:30   0:00 grep --color=auto docker