Docker remote call

Remote call here refers to remote call through containerd. Please refer to the introduction of docker component for dockerd
Modify docker service

sudo vim /usr/lib/systemd/system/docker.service

在ExecStart末尾追加 -H tcp://0.0.0.0:2375

ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -H tcp://0.0.0.0:2375

Reload profile

systemctl daemon-reload
sudo systemctl restart docker

Call docker command through other computers

docker -H 192.168.194.142 ps -a
Send a Message