|
| 1 | +--- |
| 2 | +description: Learn about settings in Docker Hub |
| 3 | +keywords: Docker Hub, Hub, repositories, settings |
| 4 | +title: Settings |
| 5 | +weight: 25 |
| 6 | +--- |
| 7 | + |
| 8 | +You can configure the following settings in Docker Hub: |
| 9 | + |
| 10 | +- [Default privacy](#default-privacy): Settings for all repositories within each |
| 11 | + namespace |
| 12 | +- [Notifications](#notifications): Personal settings for autobuild notifications |
| 13 | + |
| 14 | +## Default privacy |
| 15 | + |
| 16 | +You can configure the following default privacy settings for all repositories in |
| 17 | +a namespace: |
| 18 | + |
| 19 | +- [Disable creation of public repos](#disable-creation-of-public-repos): Prevent |
| 20 | + organization users from creating public repositories (organization namespaces |
| 21 | + only) |
| 22 | +- [Configure default repository privacy](#configure-default-repository-privacy): |
| 23 | + Set the default repository privacy for new repositories |
| 24 | + |
| 25 | + |
| 26 | +### Disable creation of public repos |
| 27 | + |
| 28 | +{{< summary-bar feature_name="Disable public repositories" >}} |
| 29 | + |
| 30 | +Organization owners and editors can prevent creating public repositories within |
| 31 | +organization namespaces. You cannot configure this setting for personal account |
| 32 | +namespaces. |
| 33 | + |
| 34 | +> [!NOTE] |
| 35 | +> |
| 36 | +> Enabling this feature does not affect existing public repositories. Any public |
| 37 | +> repositories that already exist will remain public. To make them private, you |
| 38 | +> must change their visibility in the individual repository settings. |
| 39 | +
|
| 40 | +To configure the disable public repositories setting for an organization |
| 41 | +namespace: |
| 42 | + |
| 43 | +1. Sign in to [Docker Hub](https://hub.docker.com). |
| 44 | +2. Select **My Hub**. |
| 45 | +3. Select your organization from the top-left account drop-down. |
| 46 | +4. Select **Settings** > **Default privacy**. |
| 47 | +5. Toggle **Disable public repositories** to your desired setting. |
| 48 | +6. Select **Save**. |
| 49 | + |
| 50 | +### Configure default repository privacy |
| 51 | + |
| 52 | +Use the default repository privacy setting to automatically set privacy for |
| 53 | +repositories created via `docker push` commands when the repository doesn't |
| 54 | +exist yet. In this case, Docker Hub automatically creates the repository with |
| 55 | +the default repository privacy for that namespace. |
| 56 | + |
| 57 | +> [!NOTE] |
| 58 | +> |
| 59 | +> You cannot configure the default repository privacy setting when **Disable |
| 60 | +> public repositories** is enabled. |
| 61 | +
|
| 62 | +To configure the default repository privacy for a namespace: |
| 63 | + |
| 64 | +1. Sign in to [Docker Hub](https://hub.docker.com). |
| 65 | +2. Select **My Hub**. |
| 66 | +3. Select your organization or account from the top-left account drop-down. |
| 67 | +4. Select **Settings** > **Default privacy**. |
| 68 | +5. In **Default repository privacy**, select the desired default privacy setting: |
| 69 | + |
| 70 | + - **Public**: All new repositories appear in Docker Hub search results and can be |
| 71 | + pulled by everyone. |
| 72 | + - **Private**: All new repositories don't appear in Docker Hub search results |
| 73 | + and are only accessible to you and collaborators. In addition, if the |
| 74 | + repository is created in an organization's namespace, then the repository |
| 75 | + is accessible to those with applicable roles or permissions. |
| 76 | + |
| 77 | +6. Select **Save**. |
| 78 | + |
| 79 | +## Notifications |
| 80 | + |
| 81 | +You can send notifications to your email for all your repositories using |
| 82 | +autobuilds. |
| 83 | + |
| 84 | +### Configure autobuild notifications |
| 85 | + |
| 86 | +1. Sign in to [Docker Hub](https://hub.docker.com). |
| 87 | +2. Select **My Hub**. |
| 88 | +3. Select your personal account from the top-left account drop-down. |
| 89 | +4. Select **Settings** > **Notifications**. |
| 90 | +5. Select the notifications to receive by email: |
| 91 | + |
| 92 | + - **Off**: No notifications. |
| 93 | + - **Only failures**: Only notifications about failed builds. |
| 94 | + - **Everything**: Notifications for successful and failed builds. |
| 95 | + |
| 96 | +6. Select **Save**. |
0 commit comments