1、创建文件写入IP:端口
sudo vim /etc/docker/daemon.json
{"insecure-registries":["172.16.203.203:5000"]}
2、修改文件
sudo vim /lib/systemd/system/docker.service
在ExecStart下行添加 EnvironmentFile=-/etc/docker/daemon.json
3、重启
sudo systemctl daemon-reload
4、推送
docker push 172.16.203.203:5000/hello-world