|
2 | 2 |
|
3 | 3 | copyright:
|
4 | 4 | years: 2020, 2024
|
5 |
| -lastupdated: "2024-01-11" |
| 5 | +lastupdated: "2024-01-19" |
6 | 6 |
|
7 | 7 | keywords: registries, container registry, image registry, apikey, API key, access token, images, registry access, registry secret, service id,registry secret, registry access secret
|
8 | 8 |
|
@@ -186,20 +186,31 @@ To set up access to an {{site.data.keyword.registryfull_notm}} in a different {{
|
186 | 186 |
|
187 | 187 | To add {{site.data.keyword.registryfull_notm}} or Docker Hub access with the console,
|
188 | 188 |
|
189 |
| -1. Go to the [{{site.data.keyword.codeengineshort}} dashboard](https://cloud.ibm.com/codeengine/overview). |
190 |
| -2. Select a project (or [create one](/docs/codeengine?topic=codeengine-manage-project#create-a-project)). |
191 |
| -3. From the project page, click **Registry access**. |
192 |
| -4. Click **Create**. |
193 |
| -5. Select **Docker Hub** or **Custom**. |
194 |
| -6. Enter a name for your registry access. |
195 |
| -7. Enter a server name for your registry. For {{site.data.keyword.registryshort}}, the server name is `<region>.icr.io`. For example, `us.icr.io`. For [Docker Hub](https://hub.docker.com/), the server name is `https://index.docker.io/v1/`. |
196 |
| -8. Enter a username. For {{site.data.keyword.registryfull_notm}}, it is `iamapikey`. For Docker Hub, it is your Docker ID. |
197 |
| -9. Enter the password. For {{site.data.keyword.registryfull_notm}}, the password is your API key. For Docker Hub, you can use your Docker Hub password or an [access token](#access-private-docker-hub). |
198 |
| -10. Click **Create**. |
199 |
| - |
200 |
| -You can add access to a container registry when you create an application or job, or when you build an image. Click **Configure image** and specify the container image to run, including the registry where the image is stored and the [registry access](/docs/codeengine?topic=codeengine-add-registry#types-registryaccesssecrets) to use to retrieve the image. Follow previous steps 5-9. |
| 189 | + |
| 190 | + |
| 191 | +**REVIEW** |
| 192 | + |
| 193 | +Before you begin, [create a project](/docs/codeengine?topic=codeengine-manage-project). |
| 194 | + |
| 195 | +1. After your project is in **Active** status, click the name of your project on the [{{site.data.keyword.codeengineshort}} Projects page](https://cloud.ibm.com/codeengine/projects){: external}. |
| 196 | +2. From the Components page, click **Secrets and configmaps**. |
| 197 | +3. From the Secrets and configmaps page, click **Create** to create your secret. |
| 198 | +4. From the Create secret or configmap page, complete the following steps: |
| 199 | + 1. Select **Registry secret**, and click **Next**. |
| 200 | + 2. Provide a name; for example, `mysecret-registry`. |
| 201 | + 3. Specify the target registry for this secret, such as {{site.data.keyword.registrylong_notm}} or Docker Hub. |
| 202 | + 4. Specify the location of the registry. |
| 203 | + 5. Specify a username. If this secret is for {{site.data.keyword.registrylong_notm}}, the username is `iamapikey`. If this secret is for Docker Hub, it is your Docker ID. |
| 204 | + 6. Enter the credentials for the username. For {{site.data.keyword.registryfull_notm}}, use your IAM API key. For Docker Hub, you can use your Docker Hub password or an [access token](#access-private-docker-hub). For other target registries, specify the password or API key for the username. |
| 205 | + 7. Click **Create** to create the secret. |
| 206 | + |
| 207 | +Now that your secret is created from the console, go to the Secrets and configmaps page to view a list of defined secrets and configmaps. You can apply filters to customize the list to meet your needs. |
| 208 | + |
| 209 | +You can add access to a container registry when you create an application or job, or when you build an image. Click **Configure image** and specify the container image to run, including the registry where the image is stored and the [registry access](/docs/codeengine?topic=codeengine-add-registry#types-registryaccesssecrets) to use to retrieve the image. |
201 | 210 | {: tip}
|
202 | 211 |
|
| 212 | +**/REVIEW** |
| 213 | + |
203 | 214 | ### Adding registry access with the CLI
|
204 | 215 | {: #add-registry-access-ce-cli}
|
205 | 216 |
|
|
0 commit comments