docker run -d -p 5000:5000 --restart=always --name registry -v /opt/registry:/var/lib/registry registry
vim /usr/lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd-current 中插入下面一行
--insecure-registry=192.168.3.228:5000
systemctl daemon-reload && systemctl restart docker