You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorial.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -250,22 +250,27 @@ Push your image to a container registry, publishing it so that you and others ca
250
250
251
251
To publish your image, you need push images to a registry service that stores the image for future use. Typically, you need to authenticate with a registry to push an image. This example assumes that you have an account at a hypothetical registry named `registry.example.com` with username `fido` and a password or token `my-secret`, and that your personal repository name is the same as your username.
252
252
253
+
> [!NOTE]
254
+
> By default `container` is configured to use Docker Hub.
255
+
> You can change the default registry used by running `container registry default set <registry url>`.
256
+
> See the other sub commands under `container registry` for more options.
257
+
253
258
To sign into a secure registry with your login credentials, enter your username and password at the prompts after running:
254
259
255
260
```bash
256
-
container registry login registry.example.com
261
+
container registry login {registry.example.com}
257
262
```
258
263
259
264
Create another name for your image that includes the registry name, your repository name, and the image name, with the tag `latest`:
260
265
261
266
```bash
262
-
container images tag web-test registry.example.com/fido/web-test:latest
267
+
container images tag web-test {registry.example.com/fido}/web-test:latest
0 commit comments