我已经在docker cloud andrejvi/andrejvi_repo
中创建了存储库,并且想要放置我创建的图像。
图片名称为dev_centos32
我确实推了:
sudo docker push andrejvi/dev_centos32
根据我的理解,我必须为此图片创建标签。怎么做?
试图推动:
sudo docker push andrejvi/andrejvi_repo:dev_centos32
得到错误:
An image does not exist locally with the tag: andrejvi/andrejvi_repo:
UPD
我更改了标记,但仍无法推送到存储库
docker tag dev_centos32 andrejvi/andrejvi_repo/dev_centos32
sudo docker push andrejvi/andrejvi_repo/dev_centos32
The push refers to repository [docker.io/andrejvi/andrejvi_repo/dev_centos32]
0afb6e2f03f2: Preparing
d70d6ed6bc21: Preparing
denied: requested access to the resource is denied
UPD
登录时出错
$ sudo docker login andrejvi
Username: andrejvi
Password:
Error response from daemon: Get https://andrejvi/v2/: dial tcp: lookup andrejvi on 127.0.1.1:53: server misbehaving
答案 0 :(得分:1)
答案 1 :(得分:1)
尝试:
docker login
docker tag dev_centos32 {docker-hub-username}/andrejvi/andrejvi_repo/dev_centos32
docker image push {docker-hub-username}/andrejvi/andrejvi_repo/dev_centos32