docker unauthorized: authentication required - upon push with successful login

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

    You can mv the xxx/.docker/config.json file somewhere for handle it. Then try to login again for create new config.json file.

    #mv xx/.docker/config.json xx/.docker/config_old.json
    #docker login https://index.docker.io/v1/
    Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
    Username: YOUR USERNAME
    Password: YOUR PASSWORD
    WARNING! Your password will be stored unencrypted in /xxx/.docker/config.json.
    Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store
    
    Login Succeeded
    

提交回复
热议问题