假设服务端运行在centos7上: vim /usr/lib/systemd/system/docker.service 修改ExecStart行:
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H fd:// --containerd=/run/containerd/containerd.sock
https://docs.docker.com/engine/reference/commandline/dockerd/
防火墙开放端口:
sudo firewall-cmd --add-port=2375/tcp
重启服务:
sudo systemctl daemon-reload
sudo systemctl restart docker
brew install docker
这样只安装docker cli没有desktop。
docker -H tcp://192.168.100.106:2375 images