.nh .TH toolbox-init-container 1 .SH NAME .PP toolbox-init-container - Initialize a running container .SH SYNOPSIS .PP \fBtoolbox init-container\fP \fI--gid GID\fP \fI--home HOME\fP \fI--home-link\fP \fI--media-link\fP \fI--mnt-link\fP \fI--shell SHELL\fP \fI--uid UID\fP \fI--user USER\fP .SH DESCRIPTION .PP Initializes a newly created container that's running. It is primarily meant to be used as the entry point for all toolbox containers, and must be run inside the container that's to be initialized. It is not expected to be directly invoked by humans, and cannot be used on the host. .PP A key feature of toolbox containers is their entry point, the \fBtoolbox init-container\fR command. .PP OCI containers are inherently immutable. Configuration options passed through \fBpodman create\fR are baked into the definition of the OCI container, and can't be changed later. This means that changes and improvements made in newer versions of Toolbox can't be applied to pre-existing toolbox containers created by older versions of Toolbox. This is avoided by using the entry point to configure the container at runtime. .PP The entry point of a toolbox 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 \fBsudo\fR and \fBroot\fR access. .PP Crucial configuration files, such as \fB/etc/host.conf\fR, \fB/etc/hosts\fR, \fB/etc/localtime\fR, \fB/etc/resolv.conf\fR and \fB/etc/timezone\fR, 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 \fB/run/libvirt\fR, \fB/run/systemd/journal\fR, \fB/run/udev/data\fR, \fB/var/lib/libvirt\fR, \fB/var/lib/systemd/coredump\fR, \fB/var/log/journal\fR and others. .PP On some host operating systems, important paths like \fB/home\fR, \fB/media\fR or \fB/mnt\fR are symbolic links to other locations. The entry point ensures that paths inside the container match those on the host, to avoid needless confusion. .SH OPTIONS .PP The following options are understood: .PP \fB--gid\fP GID .PP Pass GID as the user's numerical group ID from the host to the toolbox container. .PP \fB--home\fP HOME .PP Create a user inside the toolbox container whose login directory is HOME. This option is required. .PP \fB--home-link\fP .PP Make \fB/home\fR a symbolic link to \fB/var/home\fR\&. .PP \fB--media-link\fP .PP Make \fB/media\fR a symbolic link to \fB/run/media\fR\&. .PP \fB--mnt-link\fP .PP Make \fB/mnt\fR a symbolic link to \fB/var/mnt\fR\&. .PP \fB--monitor-host\fP .PP Deprecated, does nothing. .PP Crucial configuration files inside the toolbox 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 toolbox container. .PP \fB--shell\fP SHELL .PP Create a user inside the toolbox container whose login shell is SHELL. This option is required. .PP \fB--uid\fP UID .PP Create a user inside the toolbox container whose numerical user ID is UID. This option is required. .PP \fB--user\fP USER .PP Create a user inside the toolbox container whose login name is LOGIN. This option is required. .SH SEE ALSO .PP \fBtoolbox(1)\fR, \fBpodman(1)\fR, \fBpodman-create(1)\fR, \fBpodman-start(1)\fR