1.编辑/etc/docker/daemon.json文件,修改容器仓库配置,并保存
命令:
vim /etc/docker/daemon.json
更新前
{
"registry-mirrors": ["https://ykjpg821.mirror.aliyuncs.com"]
}
更新后
{
"registry-mirrors": ["https://ykjpg821.mirror.aliyuncs.com"],
"insecure-registries": ["172.20.10.12:8080"]
}
2.重启docker及Harbor
命令:
cd /usr/local/harbor
docker-compose -f docker-compose.yml down -v
docker-compose ps -a文章来源地址https://www.toymoban.com/news/detail-818841.html
systemctl stop docker
systemctl status docker
systemctl start docker
systemctl status docker
docker-compose -f docker-compose.yml up -d文章来源:https://www.toymoban.com/news/detail-818841.html
docker-compose ps -a
[root@centos79 docker]# cd /usr/local/harbor
[root@centos79 harbor]# docker-compose -f docker-compose.yml down -v
[+] Running 10/9
✔ Container nginx Removed
到了这里,关于7-Docker私有仓库harbor私有镜像上传配置的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!