@@ -14,7 +14,6 @@ Hub web interface. For images, this lets you select a base image, add packages,
1414add OCI artifacts (such as custom certificates or additional tools), and
1515configure settings. For charts, this lets you customize the image references.
1616
17-
1817Your customizations stay secure automatically. When the base Docker Hardened
1918Image or chart receives a security patch or your OCI artifacts are updated,
2019Docker automatically rebuilds your customizations in the background. This
@@ -32,35 +31,8 @@ mirrored DHI repository can create a customized image.
3231
3332You can create customizations using either the DHI CLI or the Docker Hub web interface.
3433
35- ### Customize using the DHI CLI
36-
37- The DHI CLI provides a command-line interface for managing Docker Hardened Image
38- customizations. For installation instructions and usage details, see [ Use
39- the DHI CLI] ( ./cli.md#customize-dhi-images ) .
40-
41- #### Monitor customization builds
42-
43- List builds for a customization:
44-
45- ``` console
46- $ docker dhi customization build list --org my-org my-org/dhi-golang " golang with git"
47- ```
48-
49- Get details of a specific build:
50-
51- ``` console
52- $ docker dhi customization build get --org my-org my-org/dhi-golang " golang with git" < build-id>
53- ```
54-
55- View build logs:
56-
57- ``` console
58- $ docker dhi customization build logs --org my-org my-org/dhi-golang " golang with git" < build-id>
59- ```
60-
61- ### Customize using the Docker Hub web interface
62-
63- To customize a Docker Hardened Image using the web interface, follow these steps:
34+ {{< tabs >}}
35+ {{< tab name="Docker Hub" >}}
6436
65371 . Sign in to [ Docker Hub] ( https://hub.docker.com ) .
66381 . Select ** My Hub** .
@@ -158,6 +130,86 @@ To customize a Docker Hardened Image using the web interface, follow these steps
158130 to build. Once built, it will appear in the ** Tags** tab of the repository,
159131 and your team members can pull it like any other image.
160132
133+ {{< /tab >}}
134+ {{< tab name="CLI" >}}
135+
136+ Authenticate with ` docker login ` using your Docker credentials or a [ personal
137+ access token (PAT)] ( ../../security/access-tokens.md ) with ** Read & Write**
138+ permissions. [ Organization access tokens
139+ (OATs)] ( ../../enterprise/security/access-tokens.md ) are not supported.
140+
141+ Use the [ ` docker dhi customization ` ] ( /reference/cli/docker/dhi/customization/ ) command:
142+
143+ ``` console
144+ # Prepare a customization scaffold
145+ $ docker dhi customization prepare golang 1.25 \
146+ --org my-org \
147+ --destination my-org/dhi-golang \
148+ --name "golang with git" \
149+ --output my-customization.yaml
150+
151+ # Create a customization
152+ $ docker dhi customization create my-customization.yaml --org my-org
153+
154+ # List customizations
155+ $ docker dhi customization list --org my-org
156+
157+ # Filter customizations by name, repository, or source
158+ $ docker dhi customization list --org my-org --filter git
159+ $ docker dhi customization list --org my-org --repo dhi-golang
160+ $ docker dhi customization list --org my-org --source golang
161+
162+ # Get a customization
163+ $ docker dhi customization get my-org/dhi-golang " golang with git" --org my-org --output my-customization.yaml
164+
165+ # Update a customization
166+ $ docker dhi customization edit my-customization.yaml --org my-org
167+
168+ # Delete a customization
169+ $ docker dhi customization delete my-org/dhi-golang " golang with git" --org my-org
170+
171+ # Delete without confirmation prompt
172+ $ docker dhi customization delete my-org/dhi-golang " golang with git" --org my-org --yes
173+ ```
174+
175+ {{< /tab >}}
176+ {{< /tabs >}}
177+
178+ ### Monitor customization builds
179+
180+ {{< tabs >}}
181+ {{< tab name="Docker Hub" >}}
182+
183+ 1 . Sign in to [ Docker Hub] ( https://hub.docker.com ) .
184+ 2 . Select ** My Hub** .
185+ 3 . In the namespace drop-down, select your organization.
186+ 4 . Select ** Hardened Images** > ** Manage** .
187+ 5 . Select the ** Customizations** tab.
188+
189+ {{< /tab >}}
190+ {{< tab name="CLI" >}}
191+
192+ List builds for a customization:
193+
194+ ``` console
195+ $ docker dhi customization build list my-org/dhi-golang " golang with git" --org my-org
196+ ```
197+
198+ Get details of a specific build:
199+
200+ ``` console
201+ $ docker dhi customization build get my-org/dhi-golang " golang with git" < build-id> --org my-org
202+ ```
203+
204+ View build logs:
205+
206+ ``` console
207+ $ docker dhi customization build logs my-org/dhi-golang " golang with git" < build-id> --org my-org
208+ ```
209+
210+ {{< /tab >}}
211+ {{< /tabs >}}
212+
161213### Create an OCI artifact image for image customization
162214
163215An OCI artifact image is a Docker image that contains files or directories that
0 commit comments