|
| 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 | +- [Configure disable public repositories](#disable-public-repositories): 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 | +### Configure disable public repositories |
| 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 | +To disable the creation of public repositories for an organization namespace: |
| 35 | + |
| 36 | +1. Sign in to [Docker Hub](https://hub.docker.com). |
| 37 | +2. Select **My Hub**. |
| 38 | +3. Select the account namespace to configure. |
| 39 | +4. Select **Settings** > **Default privacy**. |
| 40 | +5. Enable **Disable public repositories**. |
| 41 | +6. Select **Save**. |
| 42 | + |
| 43 | +### Configure default repository privacy |
| 44 | + |
| 45 | +The default repository privacy setting is useful if you or others in your |
| 46 | +organization use the `docker push` command to push to a repository that doesn't |
| 47 | +exist yet. In this case, Docker Hub automatically creates the repository with |
| 48 | +the default repository privacy for that namespace. |
| 49 | + |
| 50 | +> [!NOTE] |
| 51 | +> |
| 52 | +> You cannot configure the default repository privacy setting when **Disable |
| 53 | +> public repositories** is enabled. |
| 54 | +
|
| 55 | +To configure the default repository privacy for a namespace: |
| 56 | + |
| 57 | +1. Sign in to [Docker Hub](https://hub.docker.com). |
| 58 | +2. Select **My Hub**. |
| 59 | +3. Select the account namespace to configure. |
| 60 | +4. Select **Settings** > **Default privacy**. |
| 61 | +5. In **Default repository privacy**, select the desired default privacy setting: |
| 62 | + |
| 63 | + - **Public**: All new repositories appear in Docker Hub search results and can be |
| 64 | + pulled by everyone. |
| 65 | + - **Private**: All new repositories don't appear in Docker Hub search results |
| 66 | + and are only accessible to you and collaborators. In addition, if the |
| 67 | + repository is created in an organization's namespace, then the repository |
| 68 | + is accessible to those with applicable roles or permissions. |
| 69 | + |
| 70 | +6. Select **Save**. |
| 71 | + |
| 72 | +## Notifications |
| 73 | + |
| 74 | +You can send notifications to your email for all your repositories using |
| 75 | +autobuilds. |
| 76 | + |
| 77 | +### Configure autobuild notifications |
| 78 | + |
| 79 | +1. Sign in to [Docker Hub](https://hub.docker.com). |
| 80 | +2. Select **My Hub**. |
| 81 | +3. Select your personal account namespace. |
| 82 | +4. Select **Settings** > **Notifications**. |
| 83 | +5. Select the notifications to receive by email. |
| 84 | + |
| 85 | + - **Off**: No notifications. |
| 86 | + - **Only failures**: Only notifications about failed builds. |
| 87 | + - **Everything**: Notifications for successful and failed builds. |
| 88 | + |
| 89 | +4. Select **Save**. |
0 commit comments