Skip to content

Commit 0fd8692

Browse files
add NOTE on default registry (#53)
Signed-off-by: crosbymichael <michael_crosby@apple.com>
1 parent fc13f55 commit 0fd8692

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ The tool consumes and produces OCI-compliant container images, so you can pull a
1111

1212
## Get started
1313

14-
Install `container` on your Mac.
15-
1614
### Requirements
1715

1816
You need an Apple silicon Mac to run `container`. To build it, see the [BUILDING](./BUILDING.md) document.

docs/tutorial.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,22 +250,27 @@ Push your image to a container registry, publishing it so that you and others ca
250250

251251
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.
252252

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+
253258
To sign into a secure registry with your login credentials, enter your username and password at the prompts after running:
254259

255260
```bash
256-
container registry login registry.example.com
261+
container registry login {registry.example.com}
257262
```
258263

259264
Create another name for your image that includes the registry name, your repository name, and the image name, with the tag `latest`:
260265

261266
```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
263268
```
264269

265270
Then, push the image:
266271

267272
```bash
268-
container images push registry.example.com/fido/web-test:latest
273+
container images push {registry.example.com/fido}/web-test:latest
269274
```
270275

271276
### Pull and run your image
@@ -274,8 +279,8 @@ To validate your published image, stop your current web server container, remove
274279

275280
```bash
276281
container stop my-web-server
277-
container images delete web-test registry.example.com/fido/web-test:latest
278-
container run --name my-web-server --detach --rm registry.example.com/fido/web-test:latest
282+
container images delete web-test {registry.example.com/fido}/web-test:latest
283+
container run --name my-web-server --detach --rm {registry.example.com/fido}/web-test:latest
279284
```
280285

281286
## Clean up

0 commit comments

Comments
 (0)