編輯daemon.json
vi /etc/docker/daemon.json
配置如下內容即可
{ "hosts":[ "tcp://0.0.0.0:2375", "unix:///var/run/docker.sock" ], "insecure-registries":[ "develop-harbor.geostar.com.cn", "test-harbor.geostar.com.cn", "release-harbor.geostar.com.cn" ] }
參考: