docker unauthorized: authentication required - upon push with successful login

前端 未结 24 3789
隐瞒了意图╮
隐瞒了意图╮ 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 07:10

    Even I logged in and checked all the configuration, it still does not work !!!

    It turned out that when I build my docker, I forget to put my username before the repo name

    docker build docker-meteor-build 
    

    (build successfully)

    And then when I pushed to my repository, I used

    docker push myname/docker-meteor-build 
    

    It will show the unauthorized authentication required

    So, solution is then name of build and the push should be exactly the same

    docker build myname/docker-meteor-build 
    docker push myname/docker-meteor-build 
    

提交回复
热议问题