1.docker info命令查看当前Insecure Registries
2.systemctl status docker命令查看当前docker的docker.service文件在哪里
3.编辑其中的ExecStart为:
ExecStart=/usr/bin/dockerd --insecure-registry xxx.com
4.重启docker
systemctl daemon-reload
systemctl restart docker
5.登录试试
docker login http:xxx.xom/ -u username -p password