Docker pull 提示manifest unknown的报错
今天构建一个Docker镜像推送到仓库时候提示错误
root@hwZ:~/DocHub# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
alfhua/dochub v2.4 a81da441cfec 9 minutes ago 1.67GB
<none> <none> ef1268068df4 50 minutes ago 140MB
ubuntu 16.04 005d2078bdfa 4 weeks ago 125MB
root@hwZ:~/DocHub# docker pull alfhua/dochub:v2.4.latest
Error response from daemon: manifest for alfhua/dochub:v2.4.latest not found: manifest unknown: manifest unknown
解决方法:加了一个latest标签即可
root@hwZ:~/DocHub# docker tag a81 alfhua/dochub:latest
root@hwZ:~/DocHub# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
alfhua/dochub latest a81da441cfec 18 minutes ago 1.67GB
alfhua/dochub v2.4 a81da441cfec 18 minutes ago 1.67GB
<none> <none> ef1268068df4 59 minutes ago 140MB
ubuntu 16.04 005d2078bdfa 4 weeks ago 125MB
root@iZj6caw7yt2qgf4ax16ohwZ:~/DocHub# docker push alfhua/dochub
The push refers to repository [docker.io/alfhua/dochub]
ca7a09c80a7b: Pushed
b4673298366c: Pushed
……
4a048ea09024: Layer already exists
b592b5433bbf: Layer already exists
v2.4: digest: sha256:85a0713fa451a2c086a0082dd645f16d00634e62ef9ec2d3a0fce77236718e61 size: 2205