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
- Closesapple#1565.
- `runtime-config.toml` suggested the config
pertains to just the runtime (managing container
workloads) aspect of the system.
- Also renames `ADDR` columns to `IP` in
`container ls` and `container builder status`.
Copy file name to clipboardExpand all lines: BUILDING.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ to prepare your build environment.
80
80
>
81
81
>**Note:** If you have already run `swift package edit`, whether intentionally or by accident, follow the steps in the next section to restore the normal `containerization` dependency. Otherwise, the modified `Package.swift` file will not work, and the project may fail to build.
82
82
83
-
5. If you want `container` to use any changes you made in the `vminit` subproject of Containerization, set the init image in your runtime configuration file at `~/.config/container/runtime-config.toml`:
83
+
5. If you want `container` to use any changes you made in the `vminit` subproject of Containerization, set the init image in your runtime configuration file at `~/.config/container/config.toml`:
84
84
85
85
```toml
86
86
[vminit]
@@ -102,7 +102,7 @@ to prepare your build environment.
102
102
103
103
To revert to using the Containerization dependency from your `Package.swift`:
104
104
105
-
1. If you were using the local init filesystem, remove the `init` override from your `~/.config/container/runtime-config.toml` (or delete the `[vminit]` section if no other image settings are present).
105
+
1. If you were using the local init filesystem, remove the `init` override from your `~/.config/container/config.toml` (or delete the `[vminit]` section if no other image settings are present).
106
106
107
107
2. Use the Swift package manager to restore the normal `containerization` dependency and update your `Package.resolved` file. If you are using Xcode, revert your `Package.swift` change instead of using `swift package unedit`.
108
108
@@ -130,14 +130,14 @@ To test changes that require the `container-builder-shim` project:
130
130
131
131
1. Clone the [container-builder-shim](https://github.com/apple/container-builder-shim) repository and navigate to its directory.
132
132
133
-
2. After making the necessary changes, build the custom builder image, set it as the active builder image in`~/.config/container/runtime-config.toml`, and remove the existing `buildkit` container so the new image will be used:
133
+
2. After making the necessary changes, build the custom builder image, set it as the active builder image in`~/.config/container/config.toml`, and remove the existing `buildkit` container so the new image will be used:
134
134
135
135
```bash
136
136
container build -t builder .
137
137
container rm -f buildkit
138
138
```
139
139
140
-
Add the following to your `~/.config/container/runtime-config.toml`:
140
+
Add the following to your `~/.config/container/config.toml`:
Copy file name to clipboardExpand all lines: docs/how-to.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -345,7 +345,7 @@ Use `container ls` to see that the container is on the `foo` subnet:
345
345
346
346
```console
347
347
% container ls
348
-
ID IMAGE OS ARCH STATE ADDR
348
+
ID IMAGE OS ARCH STATE IP
349
349
my-web-server web-test:latest linux arm64 running 192.168.65.2
350
350
```
351
351
@@ -360,7 +360,7 @@ Networks support both IPv4 and IPv6. When creating a network without explicit su
360
360
361
361
## Configure default network subnets
362
362
363
-
You can customize the default IPv4 and IPv6 subnets used for new networks by editing your runtime configuration file at `~/.config/container/runtime-config.toml`:
363
+
You can customize the default IPv4 and IPv6 subnets used for new networks by editing your runtime configuration file at `~/.config/container/config.toml`:
If you want to prevent the use of Rosetta translation during container builds on Apple Silicon Macs, set the following in `~/.config/container/runtime-config.toml`:
671
+
If you want to prevent the use of Rosetta translation during container builds on Apple Silicon Macs, set the following in `~/.config/container/config.toml`:
Copy file name to clipboardExpand all lines: docs/tutorial.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ If you haven't created any containers yet, the command outputs an empty list:
42
42
43
43
<pre>
44
44
% container list --all
45
-
ID IMAGE OS ARCH STATE ADDR
45
+
ID IMAGE OS ARCH STATE IP
46
46
%
47
47
</pre>
48
48
@@ -97,7 +97,7 @@ You can save keystrokes by abbreviating commands and options. For example, abbre
97
97
98
98
<pre>
99
99
% container ls -a
100
-
ID IMAGE OS ARCH STATE ADDR
100
+
ID IMAGE OS ARCH STATE IP
101
101
%
102
102
</pre>
103
103
@@ -113,7 +113,7 @@ sudo container system dns create test
113
113
114
114
Enter your administrator password when prompted. The first command requires administrator privileges to create a file containing the domain configuration under the `/etc/resolver` directory, and to tell the macOS DNS resolver to reload its configuration files.
115
115
116
-
With the domain set to `test`, if you use `--name my-web-server` to start a container, queries to `my-web-server.test` will respond with that container's IP address. You can customize the domain in `~/.config/container/runtime-config.toml`.
116
+
With the domain set to `test`, if you use `--name my-web-server` to start a container, queries to `my-web-server.test` will respond with that container's IP address. You can customize the domain in `~/.config/container/config.toml`.
The `--detach` flag runs the container in the background, so that you can continue running commands in the same terminal. The `--rm` flag causes the container to be removed automatically after it stops.
184
184
185
-
When you list containers now, `my-web-server` is present, along with the container that `container` started to build your image. Note that its IP address, shown in the `ADDR` column, is `192.168.64.3`:
185
+
When you list containers now, `my-web-server` is present, along with the container that `container` started to build your image. Note that its IP address, shown in the `IP` column, is `192.168.64.3`:
186
186
187
187
<pre>
188
188
% container ls
189
-
ID IMAGE OS ARCH STATE ADDR
189
+
ID IMAGE OS ARCH STATE IP
190
190
buildkit ghcr.io/apple/container-builder-shim/builder:0.0.3 linux arm64 running 192.168.64.2
191
191
my-web-server web-test:latest linux arm64 running 192.168.64.3
0 commit comments