Skip to content

Commit 50bf875

Browse files
add public repo setting
Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
1 parent 5cde997 commit 50bf875

File tree

6 files changed

+105
-56
lines changed

6 files changed

+105
-56
lines changed

content/manuals/docker-hub/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ grid:
2020
or the Docker community.
2121
icon: inbox
2222
link: /docker-hub/repos
23+
- title: Settings
24+
description: Learn about settings in Docker Hub.
25+
icon: settings
26+
link: /docker-hub/settings
2327
- title: Organizations
2428
description: Learn about organization administration.
2529
icon: store

content/manuals/docker-hub/release-notes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ tags: [Release notes]
1313
Here you can learn about the latest changes, new features, bug fixes, and
1414
known issues for each Docker Hub release.
1515

16+
## 2026-02-05
17+
18+
### New
19+
20+
- Administrators can now prevent creating public repositories within
21+
organization namespaces using the [Disable public
22+
repositories](./settings.md#configure-disable-public-repositories) setting.
23+
1624
## 2025-02-18
1725

1826
### New

content/manuals/docker-hub/repos/_index.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,4 @@ In this section, learn how to:
5353
accessing analytics, and enabling vulnerability scanning.
5454

5555
- [Archive](./archive.md) an outdated or unsupported repository.
56-
- [Delete](./delete.md) a repository.
57-
- [Manage personal settings](./settings.md): For your account, you can set personal
58-
settings for repositories, including default repository privacy and autobuild
59-
notifications.
56+
- [Delete](./delete.md) a repository.

content/manuals/docker-hub/repos/settings.md

Lines changed: 0 additions & 52 deletions
This file was deleted.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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**.

data/summary.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ GitHub Actions cache:
218218
Hardened Docker Desktop:
219219
subscription: [Business]
220220
for: Administrators
221+
Disable public repositories:
222+
subscription: [Team, Business]
223+
for: Administrators
221224
Image management:
222225
availability: Beta
223226
Namespace access:

0 commit comments

Comments
 (0)