docker unauthorized: authentication required - upon push with successful login

前端 未结 24 3792
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 06:21

While pushing the docker image (after successful login) from my host I am getting \"unauthorized: authentication required\".

Details below.

-bash-4.         


        
24条回答
  •  没有蜡笔的小新
    2020-11-28 06:45

    I had the same problem but i fixed it with push with specified url. as: docker login -u https://index.docker.io/v1/

    console output:

    The push refers to a repository [docker.io//richcity]
    adc9144127c1: Preparing 
    4db5654f7a64: Preparing 
    ce71ae73bc60: Preparing 
    e8e980243ee4: Preparing 
    d773e991f7d2: Preparing 
    bae23f4bbe95: Waiting 
    5f70bf18a086: Waiting 
    3d3e4e34386e: Waiting 
    e72d5d9d5d30: Waiting 
    8d1d75696199: Waiting 
    bdf5b19f60a4: Waiting 
    c8bd8922fbb7: Waiting 
    unauthorized: authentication required
    
    1010deiMac:dockerspace whoami$ docker login -u  https://index.docker.io/v1/
    Password: 
    Login Succeeded
    1010deiMac:dockerspace whoami$ docker push /richcity 
    The push refers to a repository [docker.io//richcity]
    adc9144127c1: Pushed 
    4db5654f7a64: Pushed 
    ce71ae73bc60: Pushed 
    e8e980243ee4: Pushed 
    d773e991f7d2: Pushed 
    bae23f4bbe95: Pushed 
    5f70bf18a086: Pushed 
    3d3e4e34386e: Pushing [=============>                                     ] 45.07 MB/165.4 MB
    e72d5d9d5d30: Pushed 
    8d1d75696199: Pushing [>                                                  ] 1.641 MB/118.1 MB
    bdf5b19f60a4: Pushing [============>                                      ]   142 MB/568.4 MB
    c8bd8922fbb7: Pushing [========================>                          ] 59.44 MB/121.8 MB
    

提交回复
热议问题