百度盘提取码:
7fn1
在搭建Docker私有仓库一节中出现的问题
问题一
zx@ubuntu:/usr/local/dockerjdk8$ docker push 144.34.164.217:5000/centosjdk1.8
The push refers to repository [144.34.164.217:5000/centosjdk1.8]
An image does not exist locally with the tag: 144.34.164.217:5000/centosjdk1.8
报错:
An image does not exist locally with the tag: 144.34.164.217:5000/centosjdk1.8
解决方法:
docker tag centosjdk1.8 144.34.164.217:5000/centosjdk1.8
问题二
zx@ubuntu:/usr/local/dockerjdk8$ docker push 144.34.164.217:5000/centosjdk1.8
The push refers to repository [144.34.164.217:5000/centosjdk1.8]
Get https://144.34.164.217:5000/v2/: http: server gave HTTP response to HTT
报错:
Get https://144.34.164.217:5000/v2/: http: server gave HTTP response to HTT
解决方法:
sudo gedit /etc/docker/daemon.json
添加如下内容:
{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"],
"insecure-registries": ["144.34.164.217:5000"]
}