1.編輯/etc/docker/daemon.json文件,修改容器倉(cāng)庫(kù)配置,并保存
命令:
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文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-818841.html
systemctl stop docker
systemctl status docker
systemctl start docker
systemctl status docker
docker-compose -f docker-compose.yml up -d文章來(lái)源:http://www.zghlxwxcb.cn/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
到了這里,關(guān)于7-Docker私有倉(cāng)庫(kù)harbor私有鏡像上傳配置的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!