4

Following sequence doesn't work:

# docker login
# docker tag <image-hash> <docker-hub-id>/<name>
# docker push <docker-hub-id>/<name>

fails with

The push refers to a repository [registry.fedoraproject.org/<docker-hub-id>/<name>]
9c360ae72584: Preparing 
55b267618723: Preparing 
unauthorized: authentication required

It looks like docker tries to push the image to the wrong repository.

czerny
  • 15,090
  • 14
  • 68
  • 96

1 Answers1

2

Fedora doesn't use Docker Hub as default repository by default. One has to explicitly state the target repo:

# docker login docker.io
# docker tag <image-hash> docker.io/<docker-hub-user-id>/<name>
# docker push docker.io/<docker-hub-user-id>/<name>
czerny
  • 15,090
  • 14
  • 68
  • 96