Skip to content

Commit 55952c8

Browse files
committed
doc/toolbox-create: Put toolbox set-up before entry point & tweak them
This builds upon commit ea452d7. The configuration of a toolbox container is a higher level topic than the entry point, and the entry point is mentioned as one part of it. Therefore, putting the section on toolbox set-up earlier in the text makes it nicely flow from the DESCRIPTION section into the Entry Point sub-section. Emphasize the user-visible features of a toolbox container, and not the underlying implementation details, and avoid using too much jargon about container technology. #814
1 parent 4b70754 commit 55952c8

1 file changed

Lines changed: 20 additions & 26 deletions

File tree

‎doc/toolbox-create.1.md‎

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,24 @@ image had a tag, then the tag is included in the name of the container, but
2929
it's separated by a hyphen, not a colon. A different name can be assigned by
3030
using the CONTAINER argument.
3131

32+
### Container Configuration
33+
3234
A toolbox container seamlessly integrates with the rest of the operating
3335
system by providing access to the user's home directory, the Wayland and X11
34-
sockets, SSH agent, etc..
36+
sockets, networking (including Avahi), removable devices (like USB sticks),
37+
systemd journal, SSH agent, D-Bus, ulimits, /dev and the udev database, etc..
38+
39+
The user ID and account details from the host is propagated into the toolbox
40+
container, SELinux label separation is disabled, and the host file system can
41+
be accessed by the container at /run/host. The container has access to the
42+
host's Kerberos credentials cache if it's configured to use KCM caches.
43+
44+
A toolbox container can be identified by the `com.github.containers.toolbox`
45+
label or the `/run/.toolboxenv` file.
46+
47+
The entry point of a toolbox container is the `toolbox init-container` command
48+
which plays a role in setting up the container, along with the options passed
49+
to `podman create`.
3550

3651
### Entry Point
3752

@@ -46,8 +61,10 @@ created by older versions of Toolbox. This is avoided by using the entry point
4661
to configure the container at runtime.
4762

4863
The entry point of a toolbox container customizes the container to fit the
49-
current user by ensuring that it has a user that matches the one on the host.
50-
It ensures that configuration files, such as `/etc/host.conf`, `/etc/hosts`,
64+
current user by ensuring that it has a user that matches the one on the host,
65+
and grants it `sudo` and `root` access.
66+
67+
Crucial configuration files, such as `/etc/host.conf`, `/etc/hosts`,
5168
`/etc/localtime`, `/etc/resolv.conf` and `/etc/timezone`, inside the container
5269
are kept synchronized with the host. The entry point also bind mounts various
5370
subsets of the host's filesystem hierarchy to their corresponding locations
@@ -60,29 +77,6 @@ On some host operating systems, important paths like `/home`, `/media` or
6077
paths inside the container match those on the host, to avoid needless
6178
confusion.
6279

63-
### Toolbox setup
64-
65-
`toolbox-create(1)` passes several options to `podman-create(1)` when creating
66-
toolbox containers to provide the needed functionality. The options have the
67-
following effects:
68-
69-
- Toolboxes share with the host system:
70-
- network stack, including dns
71-
- IPC (shared memory, semaphores, message queues,..)
72-
- PID namespace
73-
- ulimits
74-
- Toolboxes have access to cherry-picked parts of host filesystem made
75-
available under /run/host/
76-
- Toolboxes are privileged containers
77-
- SELinux label separation is disabled for toolboxes
78-
- Toolboxes use as their entry-point `toolbox-init-container(1)`
79-
80-
Despite being privileged, rootless containers cannot have more privileges than
81-
the user that created them.
82-
83-
Thanks to these options, `toolbox-init-container(1)` can futher set up the
84-
containers. Read more about the entry-point in `toolbox-init-container(1)`.
85-
8680
## OPTIONS ##
8781

8882
**--distro** DISTRO, **-d** DISTRO

0 commit comments

Comments
 (0)