docker配置daemon.json(加速、http访问私服仓库)

systemctl stop firewalld.service
systemctl disable firewalld.service
docker run-d --name=registry -p 5000:5000 registry
docker run -d --name=rancher -p 9090:8080 rancher/server
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
【docker配置daemon.json(加速、http访问私服仓库)】"registry-mirrors": ["https://o4omo0yw.mirror.aliyuncs.com"],"insecure-registries":["192.168.244.131:5000"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
docker start registry rancher

    推荐阅读