添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
温暖的上铺  ·  java.io.IOException: ...·  7 月前    · 
斯文的数据线  ·  Hey, Scripting Guy! ...·  1 年前    · 

Issue

  • After I pushed my image to internal registry, I cannot use the image due to the authentication error to pull the image.
  • 2017-10-05 12:08:49 +0800 SGT   2017-10-05 12:08:49 +0800 SGT   1         xxxx   Pod                 Warning   FailedSync   {kubelet NODE_NAME}            pod, skipping: failed to "StartContainer" for "POD_NAME" with ErrImagePull: "unauthorized: authentication required"
    
  • I have confirmed that it can be pulled. Why OpenShift pod failed to pull?
  • # docker login -u `oc whoami` -p `oc whoami -t`  172.30.200.10:5000
    Login Succeeded
    # docker push 172.30.200.10:5000/test-project/hello-image:latest
    5bef08742407: Pushed 
    latest: digest: sha256:a7683f80fc2d475b9eaef90d1a1f5f4fdb21477e1ebbb964730122d65b77ee95 size: 1159
    # docker pull 172.30.200.10:5000/test-project/hello-image:latest
    Using default tag: latest
    Trying to pull repository 172.30.200.10:5000/test-project/hello-image:latest ...
    sha256:a7683f80fc2d475b9eaef90d1a1f5f4fdb21477e1ebbb964730122d65xxxxxxxx: Pulling from 172.30.200.10:5000/test-project/hello-image
    Digest: sha256:a7683f80fc2d475b9eaef90d1a1f5f4fdb21477e1ebbb964730122dxxxxxxxxxx
    Status: Image is up to date for 172.30.200.10:5000/test-project/hello-image:latest
                      

    New to Red Hat?

    Learn more about Red Hat subscriptions

    Using a Red Hat product through a public cloud?

    How to access this content

    Here are the common uses of Markdown.

    Code blocks
    ~~~
    Code surrounded in tildes is easier to read
            
    Links/URLs
    [Red Hat Customer Portal](https://access.redhat.com)
    Learn more Are you sure you want to request a translation? We appreciate your interest in having Red Hat content localized to your language. Please note that excessive use of this feature could cause delays in getting specific content you are interested in translated.