标签:tar dock lib bin ystemd -o ecs and start
修改文件
vi /lib/systemd/system/docker.service
?
前:
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
后:
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock
重新编译
sudo systemctl daemon-reload
sudo service docker restart
查看监听
sudo netstat -ano | grep 2375
------
tcp6 0 0 :::2375 :::* LISTEN 关闭 (0.00/0/0)
?
sudo netstast -tulp
------
tcp6 0 0 [::]:2375 [::]:* LISTEN 19444/dockerd
标签:tar dock lib bin ystemd -o ecs and start
原文地址:https://www.cnblogs.com/StefanieYang/p/13131944.html