Docker Restful API Enable
vi /lib/systemd/system/docker.service
第13行
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
改為
ExecStart=/usr/bin/dockerd -H=fd:// -H=tcp://0.0.0.0:2375 --containerd=/run/containerd/containerd.sock
重啟Service
systemctl daemon-reload
sudo service docker restart
測試API Service
curl http://localhost:2375/images/json
參考: How to enable docker remote API on docker host? | by Steve Mak | Medium