Pushing Docker images into a local repository

Solution In Progress - Updated -

Environment

  • Red Hat Enterprise Linux 7.0

Issue

  • docker cannot push to root repository

Resolution

Verify you are tagging the images first, then using the correct parameters to push to your local registry.

# docker tag <imagehash> <registry>:<port>/<imagename>
# docker push <registry>:<port>/<imagename>
eg

# docker tag f1f5633f050b  registry.internal.example.com:5000/rhel7
# docker push registry.internal.example.com:5000/rhel7

Root Cause

In order to push to a private registry, you first have to tag the images with the name of the private registry.

Diagnostic Steps

# docker push rhel7 registry.internal.example.com:5000
2014/08/27 14:53:47 You cannot push a "root" repository. Please rename your repository in <user>/<repo> (ex: <user>/rhel7)

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments