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
This installs the Container binary at `/usr/local/bin/container`.
71
71
72
72
Start the container system service:
73
73
74
-
```bash
75
-
container system start
76
-
```
74
+
```bash
75
+
container system start
76
+
```
77
77
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 %}}
80
81
81
82
The background server process is now running.
82
83
83
84
Verify the CLI version:
84
85
85
-
```bash
86
-
container --version
87
-
```
86
+
```bash
87
+
container --version
88
+
```
88
89
89
-
Example output:
90
+
Example output:
90
91
91
-
```output
92
-
container CLI version 0.2.0
93
-
```
92
+
```output
93
+
container CLI version 0.2.0
94
+
```
94
95
95
96
## Build and run a container
96
97
@@ -141,28 +142,30 @@ Once the image is built and tested locally, it can be pushed to a container regi
141
142
142
143
Tag the image with a registry-compatible name:
143
144
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
+
```
147
148
148
-
Replace `<your-username>` with your Docker Hub username.
149
+
Replace `<your-username>` with your Docker Hub username.
149
150
150
151
Log in to Docker Hub:
151
152
152
-
```bash
153
-
container registry login docker.io
154
-
```
153
+
```bash
154
+
container registry login docker.io
155
+
```
155
156
156
157
Enter your Docker Hub username and password.
157
158
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.
0 commit comments