Skip to content

Commit 4ccb866

Browse files
authored
Merge pull request #464 from cgwalters/doc-no-nesting
docs/guidance: Talk about nesting containers
2 parents 118e078 + 40e2e94 commit 4ccb866

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/src/building/guidance.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,26 @@ Docker got started.
3535
There's not much special to this that doesn't also apply
3636
to application containers; but see below.
3737

38+
### Nesting OCI containers in bootc containers
39+
40+
The [OCI format](https://github.com/opencontainers/image-spec/blob/main/spec.md) uses
41+
"whiteouts" represented in the tar stream as special `.wh` files, and typically
42+
consumed by the Linux kernel `overlayfs` driver as special `0:0` character
43+
devices. Without special work, whiteouts cannot be nested.
44+
45+
Hence, an invocation like
46+
47+
```
48+
RUN podman pull quay.io/exampleimage/someimage
49+
```
50+
51+
will create problems, as the `podman` runtime will create whiteout files
52+
inside the container image filesystem itself.
53+
54+
Special care and code changes will need to be made to container
55+
runtimes to support such nesting. Some more discussion in
56+
[this tracker issue](https://github.com/containers/bootc/issues/128).
57+
3858
## systemd units
3959

4060
The model that is most popular with the Docker/OCI world

0 commit comments

Comments
 (0)