docker unauthorized: authentication required - upon push with successful login

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

    If you running windows 7 docker Registry

    1. Start **Docker Quick Start terminal** run (this terminal enables connection ) Until you pushed images , that will keep token alive .
    2. Login docker login
    3. Make sure you tag the image with username

      docker build -f Dockerfile -t 'username'/imagename

    4. push image

      docker image push username/imagename

    Note: image name all lowercase

提交回复
热议问题