Move images (original) (raw)
Consolidating and organizing your Docker images across repositories can streamline your workflows, whether you're managing personal projects or contributing to an organization. This topic explains how to move images between Docker Hub repositories, ensuring that your content remains accessible and organized under the correct accounts or namespaces.
When consolidating personal repositories, you can pull private images from the initial repository and push them into another repository owned by you. To avoid losing your private images, perform the following steps:
- Sign up for a new Docker account with a personal subscription.
- Sign in toDocker using your original Docker account
- Pull your images:
- Tag your private images with your newly created Docker username, for example:
- Using
docker login
from the CLI, sign in with your newly created Docker account, and push your newly tagged private images to your new Docker account namespace:
The private images that existed in your previous account are now available in your new account.
To avoid losing your private images, you can pull your private images from your personal account and push them to an organization that's owned by you.
- Navigate toDocker Hub and select My Hub.
- Select the applicable organization and verify that your user account is a member of the organization.
- Sign in toDocker Hub using your original Docker account, and pull your images:
- Tag your images with your new organization namespace:
- Push your newly tagged images to your new org namespace:
The private images that existed in your user account are now available for your organization.