关闭 docker remote api 端口2375

  sre


172.31.12.58-db-nginx-redis
http://192.168.2.56:2375/
{“message”:”page not found”}
vim /usr/lib/systemd/system/docker.service

ExecStart=/usr/bin/dockerd -H 0.0.0.0:2375 -H unix:///var/run/docker.sock –insecure-registry=harbor.ecs.host:1280 –registry-mirror=https://registry.docker-cn.com –default-ulimit=core=0:0 –live-restore –graph=/data/docker-mapper

-H 0.0.0.0:2375去掉

systemctl daemon-reload 
systemctl restart docker
lsof -i:2375

LEAVE A COMMENT

Captcha Code