toolbox-init-container(1)
π toolbox-init-container β bestie's guide to initializing a running container π
okay so this is toolbox-init-container from the General Commands Manual, and no, you don't call it yourself, i prommy. it's the entry point of every Toolbx container, the main character of the whole operation, and it lives inside the container. let's get into it β¨
π NAME π
toolbox-init-container β initialize a running container. that's it, that's the job. π
β¨ SYNOPSIS β¨
toolbox init-container --gid GID
--home HOME
--home-link
--media-link
--mnt-link
--shell SHELL
--uid UID
--user USER
look at her. all those flags. iconic honestly. πΈ
π¦ DESCRIPTION π¦
so here's the tea: this thing initializes a newly created container that's already running. it's primarily meant to be used as the entry point for all Toolbx containers, and it must be run inside the container that's to be initialized. it is not expected to be directly invoked by humans, and it cannot be used on the host. sorry bestie, no host shenanigans. π
a key feature of Toolbx containers is their entry point, the toolbox init-container command. that's the whole vibe. π
here's the thing β OCI containers are inherently immutable. configuration options you pass through podman create get baked into the definition of the OCI container, and you literally can't change them later. which means changes and improvements made in newer versions of Toolbx can't be applied to pre-existing Toolbx containers created by older versions of Toolbx. this is avoided by using the entry point to configure the container at runtime. slay. π₯
the entry point of a Toolbx container customizes the container to fit the current user by ensuring that it has a user that matches the one on the host, and grants it sudo and root access. yes ma'am. π
crucial configuration files, such as /etc/host.conf, /etc/hosts, /etc/localtime, /etc/resolv.conf and /etc/timezone, inside the container are kept synchronized with the host. π«Ά the entry point also bind mounts various subsets of the host's file system hierarchy to their corresponding locations inside the container to provide seamless integration with the host. this includes /run/libvirt, /run/systemd/journal, /run/udev/data, /var/lib/libvirt, /var/lib/systemd/coredump, /var/log/journal and others. so many. so organized. π
on some host operating systems, important paths like /home, /media or /mnt are symbolic links to other locations. the entry point ensures that paths inside the container match those on the host, to avoid needless confusion. communication queen behavior fr fr. π¦
π OPTIONS π
the following options are understood:
--gidGID β pass GID as the user's numerical group ID from the host to the Toolbx container. π--homeHOME β create a user inside the Toolbx container whose login directory is HOME. this option is required. don't skip her. π--home-linkβ make/homea symbolic link to/var/home. π--media-linkβ make/mediaa symbolic link to/run/media. π--mnt-linkβ make/mnta symbolic link to/var/mnt. π--monitor-hostβ deprecated, does nothing. π- crucial configuration files inside the Toolbx container are always kept synchronized with their counterparts on the host, and various subsets of the host's file system hierarchy are always bind mounted to their corresponding locations inside the Toolbx container. so yeah, she's just here for the vibes, doing absolutely nothing.
--shellSHELL β create a user inside the Toolbx container whose login shell is SHELL. this option is required. π«Ά--uidUID β create a user inside the Toolbx container whose numerical user ID is UID. this option is required. π«Ά--userUSER β create a user inside the Toolbx container whose login name is LOGIN. this option is required. π«Ά
π SEE ALSO π
toolbox(1), podman(1), podman-create(1), podman-start(1)
go read those too, they're the supporting cast and they ate. π
and that's the whole page bestie!! this was toolbox-init-container(1) from the General Commands Manual, page toolbox-init-container(1), and that's a wrap. stay initialized, stay slay. π§πβ¨
π¦ where this page comes from
- arch rolling: toolbox 0.3-2 Β· Apache-2.0
- fedora 43: toolbox 0.3-1.fc43 Β· Apache-2.0
- fedora 44: toolbox 0.3-4.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms