Manage repositories
Manage default repository settings
You can manage the default repository settings for your personal account in Docker Hub. Select the Settings icon, then select Repository Settings.
Here you can manage the following:
- Default privacy: set the default repository privacy to either Public or Private.
- Linked accounts: for users with a Docker Pro, Team, or Business subscription, manage your source provider accounts to enable Automated Builds.
- Notifications: for users with a Docker Pro, Team, or Business subscription, manage how you receive notifications from autobuilds.
Change a repository from public to private
- Navigate to your repository.
- Select the Settings tab.
- Select Make private.
- Enter the name of your repository to confirm.
You get one free private repository with your Docker Hub user account (not available for organizations you're a member of). If you need more private repositories for your user account, upgrade your Docker Hub subscription from your Billing Information page.
Move images between repositories
Personal to personal
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:
-
Navigate to Docker Hub create a new Docker ID and select a personal subscription.
-
Using
docker login
from the CLI, sign in using your original Docker ID and pull your private images. -
Tag your private images with your newly created Docker ID, for example:
$ docker tag namespace1/docker101tutorial new_namespace/docker101tutorial
-
Using
docker login
from the CLI, sign in with your newly created Docker ID, and push your newly tagged private images to your new Docker ID namespace:$ docker push new_namespace/docker101tutorial
The private images that existed in your previous account are now available in your new account.
Personal to an organization
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 to Docker Hub and select Organizations.
-
Select the applicable organization and verify that your user account is a member of the organization.
-
Sign in to Docker Hub using your original Docker ID, and pull your images:
$ docker pull namespace1/docker101tutorial
-
Tag your images with your new organization namespace:
$ docker tag namespace1/docker101tutorial <new_org>/docker101tutorial
-
Push your newly tagged images to your new org namespace:
$ docker push new_org/docker101tutorial
The private images that existed in your user account are now available for your organization.
Delete a repository
Warning
Deleting a repository deletes all the images it contains and its build settings. This action can't be undone.
- Navigate to your repository.
- Select the Settings tab.
- Select Delete repository.
- Enter the name of your repository to confirm.