idea 连接docker步骤
services -->+ docker connection --->tcp://192.168.21.128:2375
修改docker配置
vi /usr/lib/systemd/system/docker.service
在ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
后面加上 -H tcp://0.0.0.0:2375
:wq!
保存退出
systemctl stop docker.socket 停掉docker
systemctl daemon-reload && systemctl start docker 重新加载配置和启动docker