Skip to content

Commit e18b98c

Browse files
Updates
1 parent 325175f commit e18b98c

File tree

1 file changed

+34
-31
lines changed

1 file changed

+34
-31
lines changed

content/install-guides/container.md

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -57,40 +57,41 @@ Go to the [GitHub Releases page](https://github.com/apple/container/releases) an
5757

5858
For example:
5959

60-
```bash
61-
wget https://github.com/apple/container/releases/download/0.2.0/container-0.2.0-installer-signed.pkg
62-
```
60+
```bash
61+
wget https://github.com/apple/container/releases/download/0.2.0/container-0.2.0-installer-signed.pkg
62+
```
6363

6464
Install the package:
6565

66-
```bash
67-
sudo installer -pkg container-0.2.0-installer-signed.pkg -target /
68-
```
66+
```bash
67+
sudo installer -pkg container-0.2.0-installer-signed.pkg -target /
68+
```
6969

7070
This installs the Container binary at `/usr/local/bin/container`.
7171

7272
Start the container system service:
7373

74-
```bash
75-
container system start
76-
```
74+
```bash
75+
container system start
76+
```
7777

78-
{{% notice Note %}}
79-
The system service must be running to use container operations such as build, run, or push. It may also need to be started again after a reboot, depending on system settings.{{%/notice %}}
78+
{{% notice note %}}
79+
You must start the service to use commands like `build`, `run`, or `push`. It may need to be restarted after rebooting.
80+
{{% /notice %}}
8081

8182
The background server process is now running.
8283

8384
Verify the CLI version:
8485

85-
```bash
86-
container --version
87-
```
86+
```bash
87+
container --version
88+
```
8889

89-
Example output:
90+
Example output:
9091

91-
```output
92-
container CLI version 0.2.0
93-
```
92+
```output
93+
container CLI version 0.2.0
94+
```
9495

9596
## Build and run a container
9697

@@ -141,28 +142,30 @@ Once the image is built and tested locally, it can be pushed to a container regi
141142

142143
Tag the image with a registry-compatible name:
143144

144-
```bash
145-
container images tag uname docker.io/<your-username>/uname:latest
146-
```
145+
```bash
146+
container images tag uname docker.io/<your-username>/uname:latest
147+
```
147148

148-
Replace `<your-username>` with your Docker Hub username.
149+
Replace `<your-username>` with your Docker Hub username.
149150

150151
Log in to Docker Hub:
151152

152-
```bash
153-
container registry login docker.io
154-
```
153+
```bash
154+
container registry login docker.io
155+
```
155156

156157
Enter your Docker Hub username and password.
157158

158-
{{% notice Note %}}
159-
The same command works with other registries such as GitHub Container Registry (ghcr.io) or any OCI-compliant registry. Replace `docker.io` with the appropriate registry hostname.{{% /notice %}}
159+
{{% notice note %}}
160+
The same command works with other registries such as GitHub Container Registry (ghcr.io) or any OCI-compliant registry. Replace `docker.io` with the appropriate registry hostname.
161+
{{% /notice %}}
162+
163+
Next, upload the tagged image to Docker Hub:
160164

161-
Next, upload the tagged image to Docker Hub.
165+
```bash
166+
container images push docker.io/<your-username>/uname:latest
167+
```
162168

163-
```bash
164-
container images push docker.io/<your-username>/uname:latest
165-
```
166169
## List images and containers
167170

168171
To view images:

0 commit comments

Comments
 (0)