docker仓库中push镜像问题


1.问题原型

Honglei:redis-operator honglei$ docker push freddyshen/redis-operator:latest
The push refers to repository [docker.io/freddyshen/redis-operator]
a4cf7cded6fe: Preparing
d2b1eafa693e: Preparing
39db6acceed3: Preparing
denied: requested access to the resource is denied

2.解决办法

1.用自己的repository先登录docker login

2.查看要push的镜像tag是否是正确的

denied: requested access to the resource is denied_redis

Honglei:redis-operator honglei$ docker login
Username: freddyshen
Password:
Login Succeeded
Honglei:$ docker push freddyshen/redis-operator:latest
The push refers to repository [docker.io/freddyshen/redis-operator]
a4cf7cded6fe: Pushed
d2b1eafa693e: Pushed
39db6acceed3: Pushed
latest: digest: sha256:3570c93117b2f7dbf6e855ab401b4e281c24d1883abcd510ca03a811fdbfc529 size: 948

3.使用

docker pull freddyshen/redis-operator:latest