1. 修改docker 配置
sudo vim /lib/systemd/system/docker.service
#ExecStart=/usr/bin/dockerd -H fd:// # 注释这行,然后添加下面那行配置
ExecStart=/usr/bin/dockerd --insecure-registry=192.168.18.33:5000 -H fd://
2. 重启docker
sudo systemctl daemon-reload
sudo service docker restart