Solution
( 1) Change Cnetos7 managed startup file , When the configuration service starts, does the daemon use the Some profiles
vim /usr/lib/systemd/system/docker.service
[ Service]
ExecStart=/usr/bin/dockerd # delete – After H (including) All content
(2) There is a problem with the configuration of daemon.json
Look carefully. What’s wrong
I didn’t write that before , number
{ # Turn on remote connection
” hosts”: [” tcp://0.0.0.0 :2375″,”unix:///var/run/docker.sock”],
# Image acceleration (write your own, alicloud, don’t write it)
” registry-mirrors”: [“https://*******.mirror.aliyuncs.com”]
}
systemctl daemon-reload
systemctl start docker
Wait for the startup to succeed,
ss -anput | grep : two thousand three hundred and seventy-five Display, port open