參考在ubuntu16.10上開啓docker 17.03.0-ce的http遠程訪問docker
1. 建立/etc/systemd/system/docker.service.d目錄 sudo mkdir /etc/systemd/system/docker.service.d 2. sudo nano /etc/systemd/system/docker.service.d/http-proxy.conf [Service] ExecStart= ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock 3.刷新配置 sudo systemctl daemon-reload 4. 從新啓動docker守護進程 sudo systemctl restart docker
配置完點擊右下角的 Applyubuntu