【问题标题】:Unable to pull my private image from docker hub无法从 docker hub 拉出我的私有图像
【发布时间】:2017-06-29 11:40:47
【问题描述】:

在我将 docker 从 1.8.2-el7 升级到版本 1.12.6 后,它无法从 docker hub 拉取我的私有图像。

我可以执行列表图像命令

sudo docker -H tcp://test-app01.local:2376 images
REPOSITORY                TAG                 IMAGE ID            CREATED             SIZE
account/image1   tag1                a4c286f0ec9e        10 hours ago        864.7 MB
ubuntu                    latest              d355ed3537e9        8 days ago          119.2 MB
account/image1   tag2          4abd8c3ed720        3 months ago        878.8 MB

但它无法从 repo 中提取最新的图像并成功登录。

sudo docker -H tcp://test-app01.local:2376 login -u username -p password
Login Succeeded

sudo docker -H tcp://test-app01.local:2376 pull  account/image1:tag1
Using default tag: tag1
Pulling repository docker.io/account/image1
Error: image account/image1:latest not found

有人可以帮忙解决这个问题吗?

【问题讨论】:

    标签: docker boot2docker docker-machine


    【解决方案1】:

    正如您在image 命令中看到的,您只有tag1 和tag2 图像标签。

    如果您没有指定任何内容,docker 将查找您没有的 latest。所以把 tag1 拉成这样:

    sudo docker -H tcp://test-app01.local:2376 pull  account/image1:tag1
    

    或者这个对于tag2:

    sudo docker -H tcp://test-app01.local:2376 pull  account/image1:tag2
    

    【讨论】:

    • 是的,如果我不提任何内容,它应该拉取默认(最新)图像。
    • 似乎问题是从 docker hub 拉我的私有图像。如果我将图像从私有更改为公共,它能够拉它。
    猜你喜欢
    • 2017-11-28
    • 1970-01-01
    • 2017-04-24
    • 2021-01-14
    • 2023-02-20
    • 2021-01-05
    • 2021-11-08
    • 1970-01-01
    • 2014-09-08
    相关资源
    最近更新 更多