修改docker默认网段172.17.x.x

修改docker默认网段172.17.x.x
--bip=10.1.42.1/16 [root@dcos-server-4 ~]# cat /etc/systemd/system/docker.service.d/override.conf [Service] Restart=always StartLimitInterval=0 RestartSec=15 ExecStartPre=-/sbin/ip link del docker0 ExecStart= ExecStart=/usr/bin/docker daemon --storage-driver=overlay -H fd:// --bip=10.1.42.1/16 docker启动时默认使用172.17.x.x作为容器的ip地址,可以通过以下方法自定义该网段: sudo service docker stop 通过...

docker服务配置代理服务器拉取官方镜像

docker服务配置代理服务器拉取官方镜像
First, create a systemd drop-in directory for the docker service: mkdir /etc/systemd/system/docker.service.d Now create a file called /etc/systemd/system/docker.service.d/http-proxy.conf that adds the HTTP_PROXY environment variable: [Service] Environment="HTTP_PROXY=http://proxy.example.com:80/" If you have internal Docker registries that you need to conta...