€•œ¼Œsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ'/translations/zh_CN/dev-tools/container”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/zh_TW/dev-tools/container”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/it_IT/dev-tools/container”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/ja_JP/dev-tools/container”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/ko_KR/dev-tools/container”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/pt_BR/dev-tools/container”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/sp_SP/dev-tools/container”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)�”}”(hŒ%SPDX-License-Identifier: GPL-2.0-only”h]”hŒ%SPDX-License-Identifier: GPL-2.0-only”…”�”}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³ŒA/var/lib/git/docbuild/linux/Documentation/dev-tools/container.rst”h´Kubh¶)�”}”(hŒ#Copyright (C) 2025 Guillaume Tucker”h]”hŒ#Copyright (C) 2025 Guillaume Tucker”…”�”}”hhÈsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1hµhhh²hh³hÇh´KubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒContainerized Builds”h]”hŒContainerized Builds”…”�”}”(hhÝh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhhØh²hh³hÇh´KubhŒ paragraph”“”)�”}”(hXìThe ``container`` tool can be used to run any command in the kernel source tree from within a container. Doing so facilitates reproducing builds across various platforms, for example when a test bot has reported an issue which requires a specific version of a compiler or an external test suite. While this can already be done by users who are familiar with containers, having a dedicated tool in the kernel tree lowers the barrier to entry by solving common problems once and for all (e.g. user ID management). It also makes it easier to share an exact command line leading to a particular result. The main use case is likely to be kernel builds but virtually anything can be run: KUnit, checkpatch etc. provided a suitable image is available.”h]”(hŒThe ”…”�”}”(hhíh²hh³Nh´NubhŒliteral”“”)�”}”(hŒ ``container``”h]”hŒ container”…”�”}”(hh÷h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhhíubhXÛ tool can be used to run any command in the kernel source tree from within a container. Doing so facilitates reproducing builds across various platforms, for example when a test bot has reported an issue which requires a specific version of a compiler or an external test suite. While this can already be done by users who are familiar with containers, having a dedicated tool in the kernel tree lowers the barrier to entry by solving common problems once and for all (e.g. user ID management). It also makes it easier to share an exact command line leading to a particular result. The main use case is likely to be kernel builds but virtually anything can be run: KUnit, checkpatch etc. provided a suitable image is available.”…”�”}”(hhíh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KhhØh²hubh×)�”}”(hhh]”(hÜ)�”}”(hŒOptions”h]”hŒOptions”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjh²hh³hÇh´Kubhì)�”}”(hŒCommand line syntax::”h]”hŒCommand line syntax:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Khjh²hubhŒ literal_block”“”)�”}”(hŒ-scripts/container -i IMAGE [OPTION]... CMD...”h]”hŒ-scripts/container -i IMAGE [OPTION]... CMD...”…”�”}”hj0sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´Khjh²hubhì)�”}”(hŒAvailable options:”h]”hŒAvailable options:”…”�”}”(hj>h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Khjh²hubhì)�”}”(hŒ!``-c, --config-file CONFIG_FILE``”h]”hö)�”}”(hjNh]”hŒ-c, --config-file CONFIG_FILE”…”�”}”(hjPh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjLubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Khjh²hubhŒ block_quote”“”)�”}”(hŒ}Path to the config file. If not specified, the default is to look for ``.container.toml`` in the current working directory. ”h]”hì)�”}”(hŒ|Path to the config file. If not specified, the default is to look for ``.container.toml`` in the current working directory.”h]”(hŒGPath to the config file. If not specified, the default is to look for ”…”�”}”(hjih²hh³Nh´Nubhö)�”}”(hŒ``.container.toml``”h]”hŒ.container.toml”…”�”}”(hjqh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjiubhŒ" in the current working directory.”…”�”}”(hjih²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Khjeubah}”(h]”h ]”h"]”h$]”h&]”uh1jch³hÇh´Khjh²hubhì)�”}”(hŒ``-e, --env-file ENV_FILE``”h]”hö)�”}”(hj‘h]”hŒ-e, --env-file ENV_FILE”…”�”}”(hj“h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj�ubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K"hjh²hubjd)�”}”(hŒ6Path to an environment file to load in the container. ”h]”hì)�”}”(hŒ5Path to an environment file to load in the container.”h]”hŒ5Path to an environment file to load in the container.”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K$hj¦ubah}”(h]”h ]”h"]”h$]”h&]”uh1jch³hÇh´K$hjh²hubhì)�”}”(hŒ``-g, --gid GID``”h]”hö)�”}”(hjÀh]”hŒ -g, --gid GID”…”�”}”(hjÂh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj¾ubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K&hjh²hubjd)�”}”(hŒ&Group ID to use inside the container. ”h]”hì)�”}”(hŒ%Group ID to use inside the container.”h]”hŒ%Group ID to use inside the container.”…”�”}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K(hjÕubah}”(h]”h ]”h"]”h$]”h&]”uh1jch³hÇh´K(hjh²hubhì)�”}”(hŒ``-i, --image IMAGE``”h]”hö)�”}”(hjïh]”hŒ-i, --image IMAGE”…”�”}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjíubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K*hjh²hubjd)�”}”(hŒ!Container image name (required). ”h]”hì)�”}”(hŒ Container image name (required).”h]”hŒ Container image name (required).”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K,hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jch³hÇh´K,hjh²hubhì)�”}”(hŒ'``-p, --config-profile CONFIG_PROFILE``”h]”hö)�”}”(hjh]”hŒ#-p, --config-profile CONFIG_PROFILE”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K.hjh²hubjd)�”}”(hŒnProfile section to use in the config file. This will override any values defined in the ``DEFAULT`` section. ”h]”hì)�”}”(hŒmProfile section to use in the config file. This will override any values defined in the ``DEFAULT`` section.”h]”(hŒYProfile section to use in the config file. This will override any values defined in the ”…”�”}”(hj7h²hh³Nh´Nubhö)�”}”(hŒ ``DEFAULT``”h]”hŒDEFAULT”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj7ubhŒ section.”…”�”}”(hj7h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K0hj3ubah}”(h]”h ]”h"]”h$]”h&]”uh1jch³hÇh´K0hjh²hubhì)�”}”(hŒ``-r, --runtime RUNTIME``”h]”hö)�”}”(hj_h]”hŒ-r, --runtime RUNTIME”…”�”}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj]ubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K3hjh²hubjd)�”}”(hŒ±Container runtime name. Supported runtimes: ``podman``, ``docker``. If not specified, the first one found on the system will be used i.e. Podman if present, otherwise Docker. ”h]”(hì)�”}”(hŒDContainer runtime name. Supported runtimes: ``podman``, ``docker``.”h]”(hŒ-Container runtime name. Supported runtimes: ”…”�”}”(hjxh²hh³Nh´Nubhö)�”}”(hŒ ``podman``”h]”hŒpodman”…”�”}”(hj€h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjxubhŒ, ”…”�”}”(hjxh²hh³Nh´Nubhö)�”}”(hŒ ``docker``”h]”hŒdocker”…”�”}”(hj’h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjxubhŒ.”…”�”}”(hjxh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K5hjtubhì)�”}”(hŒjIf not specified, the first one found on the system will be used i.e. Podman if present, otherwise Docker.”h]”hŒjIf not specified, the first one found on the system will be used i.e. Podman if present, otherwise Docker.”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K7hjtubeh}”(h]”h ]”h"]”h$]”h&]”uh1jch³hÇh´K5hjh²hubhì)�”}”(hŒ``-s, --shell``”h]”hö)�”}”(hjÀh]”hŒ -s, --shell”…”�”}”(hjÂh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj¾ubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K:hjh²hubjd)�”}”(hŒ+Run the container in an interactive shell. ”h]”hì)�”}”(hŒ*Run the container in an interactive shell.”h]”hŒ*Run the container in an interactive shell.”…”�”}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Khjh²hubjd)�”}”(hŒ°User ID to use inside the container. If the ``-g`` option is not specified and no group ID is defined in the configuration file, the user ID will also be set as the group ID. ”h]”(hì)�”}”(hŒ$User ID to use inside the container.”h]”hŒ$User ID to use inside the container.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K@hjubhì)�”}”(hŒ‰If the ``-g`` option is not specified and no group ID is defined in the configuration file, the user ID will also be set as the group ID.”h]”(hŒIf the ”…”�”}”(hjh²hh³Nh´Nubhö)�”}”(hŒ``-g``”h]”hŒ-g”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjubhŒ| option is not specified and no group ID is defined in the configuration file, the user ID will also be set as the group ID.”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KBhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jch³hÇh´K@hjh²hubhì)�”}”(hŒ``-v, --verbose``”h]”hö)�”}”(hj>h]”hŒ -v, --verbose”…”�”}”(hj@h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj<ubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KEhjh²hubjd)�”}”(hŒEnable verbose output. ”h]”hì)�”}”(hŒEnable verbose output.”h]”hŒEnable verbose output.”…”�”}”(hjWh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KGhjSubah}”(h]”h ]”h"]”h$]”h&]”uh1jch³hÇh´KGhjh²hubhì)�”}”(hŒ``-h, --help``”h]”hö)�”}”(hjmh]”hŒ -h, --help”…”�”}”(hjoh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjkubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KIhjh²hubjd)�”}”(hŒ!Show the help message and exit. ”h]”hì)�”}”(hŒShow the help message and exit.”h]”hŒShow the help message and exit.”…”�”}”(hj†h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KKhj‚ubah}”(h]”h ]”h"]”h$]”h&]”uh1jch³hÇh´KKhjh²hubeh}”(h]”Œoptions”ah ]”h"]”Œoptions”ah$]”h&]”uh1hÖhhØh²hh³hÇh´Kubh×)�”}”(hhh]”(hÜ)�”}”(hŒUsage”h]”hŒUsage”…”�”}”(hj¥h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhj¢h²hh³hÇh´KOubhì)�”}”(hXIt's entirely up to the user to choose which image to use and the ``CMD`` arguments are passed directly as an arbitrary command line to run in the container. The tool will take care of mounting the source tree as the current working directory and adjust the user and group ID as needed.”h]”(hŒDIt’s entirely up to the user to choose which image to use and the ”…”�”}”(hj³h²hh³Nh´Nubhö)�”}”(hŒ``CMD``”h]”hŒCMD”…”�”}”(hj»h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj³ubhŒÖ arguments are passed directly as an arbitrary command line to run in the container. The tool will take care of mounting the source tree as the current working directory and adjust the user and group ID as needed.”…”�”}”(hj³h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KQhj¢h²hubhì)�”}”(hX°The container image which would typically include a compiler toolchain is provided by the user and selected via the ``-i`` option. The container runtime can be selected with the ``-r`` option, which can be either ``podman`` or ``docker``. If none is specified, the first one found on the system will be used while giving priority to Podman. Support for other runtimes may be added later depending on their popularity among users.”h]”(hŒtThe container image which would typically include a compiler toolchain is provided by the user and selected via the ”…”�”}”(hjÓh²hh³Nh´Nubhö)�”}”(hŒ``-i``”h]”hŒ-i”…”�”}”(hjÛh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjÓubhŒ9 option. The container runtime can be selected with the ”…”�”}”(hjÓh²hh³Nh´Nubhö)�”}”(hŒ``-r``”h]”hŒ-r”…”�”}”(hjíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjÓubhŒ option, which can be either ”…”�”}”(hjÓh²hh³Nh´Nubhö)�”}”(hŒ ``podman``”h]”hŒpodman”…”�”}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjÓubhŒ or ”…”�”}”(hjÓh²hh³Nh´Nubhö)�”}”(hŒ ``docker``”h]”hŒdocker”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjÓubhŒÂ. If none is specified, the first one found on the system will be used while giving priority to Podman. Support for other runtimes may be added later depending on their popularity among users.”…”�”}”(hjÓh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KVhj¢h²hubhì)�”}”(hX`By default, commands are run non-interactively. The user can abort a running container with SIGINT (Ctrl-C). To run commands interactively with a TTY, the ``--shell`` or ``-s`` option can be used. Signals will then be received by the shell directly rather than the parent ``container`` process. To exit an interactive shell, use Ctrl-D or ``exit``.”h]”(hŒ�By default, commands are run non-interactively. The user can abort a running container with SIGINT (Ctrl-C). To run commands interactively with a TTY, the ”…”�”}”(hj)h²hh³Nh´Nubhö)�”}”(hŒ ``--shell``”h]”hŒ--shell”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj)ubhŒ or ”…”�”}”(hj)h²hh³Nh´Nubhö)�”}”(hŒ``-s``”h]”hŒ-s”…”�”}”(hjCh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj)ubhŒa option can be used. Signals will then be received by the shell directly rather than the parent ”…”�”}”(hj)h²hh³Nh´Nubhö)�”}”(hŒ ``container``”h]”hŒ container”…”�”}”(hjUh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj)ubhŒ7 process. To exit an interactive shell, use Ctrl-D or ”…”�”}”(hj)h²hh³Nh´Nubhö)�”}”(hŒ``exit``”h]”hŒexit”…”�”}”(hjgh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj)ubhŒ.”…”�”}”(hj)h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K]hj¢h²hubhì)�”}”(hŒÆA :ref:`configuration file` may be used to facilitate running containers for various use cases. It also removes the burden of repeatedly providing the same options on the command line.”h]”(hŒA ”…”�”}”(hjh²hh³Nh´Nubh)�”}”(hŒ&:ref:`configuration file`”h]”hŒinline”“”)�”}”(hj‰h]”hŒconfiguration file”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”(Œxref”Œstd”Œstd-ref”eh"]”h$]”h&]”uh1j‹hj‡ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œdev-tools/container”Œ refdomain”j˜Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆŒ reftarget”Œ config_file”uh1hh³hÇh´KchjubhŒž may be used to facilitate running containers for various use cases. It also removes the burden of repeatedly providing the same options on the command line.”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Kchj¢h²hubhŒnote”“”)�”}”(hŒQThe only host requirement aside from a container runtime is Python 3.11 or later.”h]”hì)�”}”(hŒQThe only host requirement aside from a container runtime is Python 3.11 or later.”h]”hŒQThe only host requirement aside from a container runtime is Python 3.11 or later.”…”�”}”(hj¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Kihj¸ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¶hj¢h²hh³hÇh´Nubj·)�”}”(hXOut-of-tree builds are not fully supported yet. The ``O=`` option can however already be used with a relative path inside the source tree to keep separate build outputs. A workaround to build outside the tree is to use ``mount --bind``, see the examples section further down.”h]”hì)�”}”(hXOut-of-tree builds are not fully supported yet. The ``O=`` option can however already be used with a relative path inside the source tree to keep separate build outputs. A workaround to build outside the tree is to use ``mount --bind``, see the examples section further down.”h]”(hŒ5Out-of-tree builds are not fully supported yet. The ”…”�”}”(hjÔh²hh³Nh´Nubhö)�”}”(hŒ``O=``”h]”hŒO=”…”�”}”(hjÜh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjÔubhŒ¢ option can however already be used with a relative path inside the source tree to keep separate build outputs. A workaround to build outside the tree is to use ”…”�”}”(hjÔh²hh³Nh´Nubhö)�”}”(hŒ``mount --bind``”h]”hŒ mount --bind”…”�”}”(hjîh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjÔubhŒ(, see the examples section further down.”…”�”}”(hjÔh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KnhjÐubah}”(h]”h ]”h"]”h$]”h&]”uh1j¶hj¢h²hh³hÇh´Nubeh}”(h]”Œusage”ah ]”h"]”Œusage”ah$]”h&]”uh1hÖhhØh²hh³hÇh´KOubh×)�”}”(hhh]”(hÜ)�”}”(hŒEnvironment Variables”h]”hŒEnvironment Variables”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjh²hh³hÇh´Kuubhì)�”}”(hX[Environment variables are not propagated to the container so they have to be either defined in the image itself or via the ``-e`` option using an environment file. In some cases it makes more sense to have them defined in the Containerfile used to create the image. For example, a Clang-only compiler toolchain image may have ``LLVM=1`` defined.”h]”(hŒ{Environment variables are not propagated to the container so they have to be either defined in the image itself or via the ”…”�”}”(hj%h²hh³Nh´Nubhö)�”}”(hŒ``-e``”h]”hŒ-e”…”�”}”(hj-h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj%ubhŒÇ option using an environment file. In some cases it makes more sense to have them defined in the Containerfile used to create the image. For example, a Clang-only compiler toolchain image may have ”…”�”}”(hj%h²hh³Nh´Nubhö)�”}”(hŒ ``LLVM=1``”h]”hŒLLVM=1”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj%ubhŒ defined.”…”�”}”(hj%h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Kwhjh²hubhì)�”}”(hŒèThe local environment file is more useful for user-specific variables added during development. It is passed as-is to the container runtime so its format may vary. Typically, it will look like the output of ``env``. For example::”h]”(hŒÑThe local environment file is more useful for user-specific variables added during development. It is passed as-is to the container runtime so its format may vary. Typically, it will look like the output of ”…”�”}”(hjWh²hh³Nh´Nubhö)�”}”(hŒ``env``”h]”hŒenv”…”�”}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjWubhŒ. For example:”…”�”}”(hjWh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K}hjh²hubj/)�”}”(hŒ4INSTALL_MOD_STRIP=1 SOME_RANDOM_TEXT=One upon a time”h]”hŒ4INSTALL_MOD_STRIP=1 SOME_RANDOM_TEXT=One upon a time”…”�”}”hjwsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´K�hjh²hubhì)�”}”(hŒ¡Please also note that ``make`` options can still be passed on the command line, so while this can't be done since the first argument needs to be the executable::”h]”(hŒPlease also note that ”…”�”}”(hj…h²hh³Nh´Nubhö)�”}”(hŒ``make``”h]”hŒmake”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj…ubhŒ„ options can still be passed on the command line, so while this can’t be done since the first argument needs to be the executable:”…”�”}”(hj…h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K„hjh²hubj/)�”}”(hŒKscripts/container -i docker.io/tuxmake/korg-clang LLVM=1 make # won't work”h]”hŒKscripts/container -i docker.io/tuxmake/korg-clang LLVM=1 make # won't work”…”�”}”hj¥sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´Kˆhjh²hubhì)�”}”(hŒthis will work::”h]”hŒthis will work:”…”�”}”(hj³h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KŠhjh²hubj/)�”}”(hŒ=scripts/container -i docker.io/tuxmake/korg-clang make LLVM=1”h]”hŒ=scripts/container -i docker.io/tuxmake/korg-clang make LLVM=1”…”�”}”hjÁsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´KŒhjh²hubeh}”(h]”Œenvironment-variables”ah ]”h"]”Œenvironment variables”ah$]”h&]”uh1hÖhhØh²hh³hÇh´Kuubh×)�”}”(hhh]”(hÜ)�”}”(hŒUser IDs”h]”hŒUser IDs”…”�”}”(hjÚh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhj×h²hh³hÇh´K�ubhì)�”}”(hXâThis is an area where the behaviour will vary slightly depending on the container runtime. The goal is to run commands as the user invoking the tool. With Podman, a namespace is created to map the current user ID to a different one in the container (1000 by default). With Docker, while this is also possible with recent versions it requires a special feature to be enabled in the daemon so it's not used here for simplicity. Instead, the container is run with the current user ID directly. In both cases, this will provide the same file permissions for the kernel source tree mounted as a volume. The only difference is that when using Docker without a namespace, the user ID may not be the same as the default one set in the image.”h]”hXäThis is an area where the behaviour will vary slightly depending on the container runtime. The goal is to run commands as the user invoking the tool. With Podman, a namespace is created to map the current user ID to a different one in the container (1000 by default). With Docker, while this is also possible with recent versions it requires a special feature to be enabled in the daemon so it’s not used here for simplicity. Instead, the container is run with the current user ID directly. In both cases, this will provide the same file permissions for the kernel source tree mounted as a volume. The only difference is that when using Docker without a namespace, the user ID may not be the same as the default one set in the image.”…”�”}”(hjèh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K’hj×h²hubhì)�”}”(hXÌSay, we're using an image which sets up a default user with ID 1000 and the current user calling the ``container`` tool has ID 1234. The kernel source tree was checked out by this same user so the files belong to user 1234. With Podman, the container will be running as user ID 1000 with a mapping to ID 1234 so that the files from the mounted volume appear to belong to ID 1000 inside the container. With Docker and no namespace, the container will be running with user ID 1234 which can access the files in the volume but not in the user 1000 home directory. This shouldn't be an issue when running commands only in the kernel tree but it is worth highlighting here as it might matter for special corner cases.”h]”(hŒgSay, we’re using an image which sets up a default user with ID 1000 and the current user calling the ”…”�”}”(hjöh²hh³Nh´Nubhö)�”}”(hŒ ``container``”h]”hŒ container”…”�”}”(hjþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjöubhX\ tool has ID 1234. The kernel source tree was checked out by this same user so the files belong to user 1234. With Podman, the container will be running as user ID 1000 with a mapping to ID 1234 so that the files from the mounted volume appear to belong to ID 1000 inside the container. With Docker and no namespace, the container will be running with user ID 1234 which can access the files in the volume but not in the user 1000 home directory. This shouldn’t be an issue when running commands only in the kernel tree but it is worth highlighting here as it might matter for special corner cases.”…”�”}”(hjöh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K�hj×h²hubhì)�”}”(hŒþGroup IDs (GID) follow the same logic as user IDs (UID). When specifying a UID via the ``--uid`` option or in the configuration file, the GID takes the same value as the UID by default. A specific GID can be set via ``--gid`` or the configuration file.”h]”(hŒXGroup IDs (GID) follow the same logic as user IDs (UID). When specifying a UID via the ”…”�”}”(hjh²hh³Nh´Nubhö)�”}”(hŒ ``--uid``”h]”hŒ--uid”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjubhŒy option or in the configuration file, the GID takes the same value as the UID by default. A specific GID can be set via ”…”�”}”(hjh²hh³Nh´Nubhö)�”}”(hŒ ``--gid``”h]”hŒ--gid”…”�”}”(hj0h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjubhŒ or the configuration file.”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K¨hj×h²hubj·)�”}”(hX0Podman's `Docker compatibility `__ mode to run ``docker`` commands on top of a Podman backend is more complex and not fully supported yet. As such, Podman will take priority if both runtimes are available on the system.”h]”hì)�”}”(hX0Podman's `Docker compatibility `__ mode to run ``docker`` commands on top of a Podman backend is more complex and not fully supported yet. As such, Podman will take priority if both runtimes are available on the system.”h]”(hŒ Podman’s ”…”�”}”(hjLh²hh³Nh´NubhŒ reference”“”)�”}”(hŒm`Docker compatibility `__”h]”hŒDocker compatibility”…”�”}”(hjVh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”ŒDocker compatibility”Œrefuri”ŒRhttps://podman-desktop.io/docs/migrating-from-docker/managing-docker-compatibility”uh1jThjLubhŒ mode to run ”…”�”}”(hjLh²hh³Nh´Nubhö)�”}”(hŒ ``docker``”h]”hŒdocker”…”�”}”(hjlh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjLubhŒ£ commands on top of a Podman backend is more complex and not fully supported yet. As such, Podman will take priority if both runtimes are available on the system.”…”�”}”(hjLh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K¯hjHubah}”(h]”h ]”h"]”h$]”h&]”uh1j¶hj×h²hh³hÇh´Nubeh}”(h]”Œuser-ids”ah ]”h"]”Œuser ids”ah$]”h&]”uh1hÖhhØh²hh³hÇh´K�ubh×)�”}”(hhh]”(hÜ)�”}”(hŒExamples”h]”hŒExamples”…”�”}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhj’h²hh³hÇh´K·ubhì)�”}”(hŒÐThe TuxMake project provides a variety of prebuilt container images available on `Docker Hub `__. Here's the shortest example to build a kernel using a TuxMake Clang image::”h]”(hŒQThe TuxMake project provides a variety of prebuilt container images available on ”…”�”}”(hj£h²hh³Nh´NubjU)�”}”(hŒ1`Docker Hub `__”h]”hŒ Docker Hub”…”�”}”(hj«h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”Œ Docker Hub”jfŒ https://hub.docker.com/u/tuxmake”uh1jThj£ubhŒO. Here’s the shortest example to build a kernel using a TuxMake Clang image:”…”�”}”(hj£h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´K¹hj’h²hubj/)�”}”(hŒ–scripts/container -i docker.io/tuxmake/korg-clang -- make LLVM=1 defconfig scripts/container -i docker.io/tuxmake/korg-clang -- make LLVM=1 -j$(nproc)”h]”hŒ–scripts/container -i docker.io/tuxmake/korg-clang -- make LLVM=1 defconfig scripts/container -i docker.io/tuxmake/korg-clang -- make LLVM=1 -j$(nproc)”…”�”}”hjÆsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´K½hj’h²hubj·)�”}”(hX6When running a command with options within the container, it should be separated with a double dash ``--`` to not confuse them with the ``container`` tool options. Plain commands with no options don't strictly require the double dashes e.g.:: scripts/container -i docker.io/tuxmake/korg-clang make mrproper”h]”(hì)�”}”(hŒóWhen running a command with options within the container, it should be separated with a double dash ``--`` to not confuse them with the ``container`` tool options. Plain commands with no options don't strictly require the double dashes e.g.::”h]”(hŒdWhen running a command with options within the container, it should be separated with a double dash ”…”�”}”(hjØh²hh³Nh´Nubhö)�”}”(hŒ``--``”h]”hŒ--”…”�”}”(hjàh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjØubhŒ to not confuse them with the ”…”�”}”(hjØh²hh³Nh´Nubhö)�”}”(hŒ ``container``”h]”hŒ container”…”�”}”(hjòh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjØubhŒ_ tool options. Plain commands with no options don’t strictly require the double dashes e.g.:”…”�”}”(hjØh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KÂhjÔubj/)�”}”(hŒ?scripts/container -i docker.io/tuxmake/korg-clang make mrproper”h]”hŒ?scripts/container -i docker.io/tuxmake/korg-clang make mrproper”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´KÇhjÔubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¶hj’h²hh³hÇh´Nubhì)�”}”(hŒOTo run ``checkpatch.pl`` in a ``patches`` directory with a generic Perl image::”h]”(hŒTo run ”…”�”}”(hjh²hh³Nh´Nubhö)�”}”(hŒ``checkpatch.pl``”h]”hŒ checkpatch.pl”…”�”}”(hj&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjubhŒ in a ”…”�”}”(hjh²hh³Nh´Nubhö)�”}”(hŒ ``patches``”h]”hŒpatches”…”�”}”(hj8h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjubhŒ% directory with a generic Perl image:”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KÉhj’h²hubj/)�”}”(hŒEscripts/container -i perl:slim-trixie scripts/checkpatch.pl patches/*”h]”hŒEscripts/container -i perl:slim-trixie scripts/checkpatch.pl patches/*”…”�”}”hjPsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´KËhj’h²hubhì)�”}”(hX¬As an alternative to the TuxMake images, the examples below refer to ``kernel.org`` images which are based on the `kernel.org compiler toolchains `__. These aren't (yet) officially available in any public registry but users can build their own locally instead using this `experimental repository `__ by running ``make PREFIX=kernel.org/``.”h]”(hŒEAs an alternative to the TuxMake images, the examples below refer to ”…”�”}”(hj^h²hh³Nh´Nubhö)�”}”(hŒ``kernel.org``”h]”hŒ kernel.org”…”�”}”(hjfh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj^ubhŒ images which are based on the ”…”�”}”(hj^h²hh³Nh´NubjU)�”}”(hŒO`kernel.org compiler toolchains `__”h]”hŒkernel.org compiler toolchains”…”�”}”(hjxh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”Œkernel.org compiler toolchains”jfŒ*https://mirrors.edge.kernel.org/pub/tools/”uh1jThj^ubhŒ}. These aren’t (yet) officially available in any public registry but users can build their own locally instead using this ”…”�”}”(hj^h²hh³Nh´NubjU)�”}”(hŒH`experimental repository `__”h]”hŒexperimental repository”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”Œexperimental repository”jfŒ*https://gitlab.com/gtucker/korg-containers”uh1jThj^ubhŒ by running ”…”�”}”(hj^h²hh³Nh´Nubhö)�”}”(hŒ``make PREFIX=kernel.org/``”h]”hŒmake PREFIX=kernel.org/”…”�”}”(hj¢h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj^ubhŒ.”…”�”}”(hj^h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KÍhj’h²hubhì)�”}”(hŒ'To build just ``bzImage`` using Clang::”h]”(hŒTo build just ”…”�”}”(hjºh²hh³Nh´Nubhö)�”}”(hŒ ``bzImage``”h]”hŒbzImage”…”�”}”(hjÂh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjºubhŒ using Clang:”…”�”}”(hjºh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KÕhj’h²hubj/)�”}”(hŒ@scripts/container -i kernel.org/clang -- make bzImage -j$(nproc)”h]”hŒ@scripts/container -i kernel.org/clang -- make bzImage -j$(nproc)”…”�”}”hjÚsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´K×hj’h²hubhì)�”}”(hŒ.Same with GCC 15 as a particular version tag::”h]”hŒ-Same with GCC 15 as a particular version tag:”…”�”}”(hjèh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KÙhj’h²hubj/)�”}”(hŒAscripts/container -i kernel.org/gcc:15 -- make bzImage -j$(nproc)”h]”hŒAscripts/container -i kernel.org/gcc:15 -- make bzImage -j$(nproc)”…”�”}”hjösbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´KÛhj’h²hubhì)�”}”(hŒxFor an out-of-tree build, a trick is to bind-mount the destination directory to a relative path inside the source tree::”h]”hŒwFor an out-of-tree build, a trick is to bind-mount the destination directory to a relative path inside the source tree:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´KÝhj’h²hubj/)�”}”(hXmkdir -p $HOME/tmp/my-kernel-build mkdir -p build sudo mount --bind $HOME/tmp/my-kernel-build build scripts/container -i kernel.org/gcc -- make mrproper scripts/container -i kernel.org/gcc -- make O=build defconfig scripts/container -i kernel.org/gcc -- make O=build -j$(nproc)”h]”hXmkdir -p $HOME/tmp/my-kernel-build mkdir -p build sudo mount --bind $HOME/tmp/my-kernel-build build scripts/container -i kernel.org/gcc -- make mrproper scripts/container -i kernel.org/gcc -- make O=build defconfig scripts/container -i kernel.org/gcc -- make O=build -j$(nproc)”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´Kàhj’h²hubhì)�”}”(hŒ>To run KUnit in an interactive shell and get the full output::”h]”hŒ=To run KUnit in an interactive shell and get the full output:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Kçhj’h²hubj/)�”}”(hŒ scripts/container -s -i kernel.org/gcc:kunit -- \ tools/testing/kunit/kunit.py \ run \ --arch=x86_64 \ --cross_compile=x86_64-linux-”h]”hŒ scripts/container -s -i kernel.org/gcc:kunit -- \ tools/testing/kunit/kunit.py \ run \ --arch=x86_64 \ --cross_compile=x86_64-linux-”…”�”}”hj.sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´Kéhj’h²hubhì)�”}”(hŒ$To just start an interactive shell::”h]”hŒ#To just start an interactive shell:”…”�”}”(hj<h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Kïhj’h²hubj/)�”}”(hŒ)scripts/container -si kernel.org/gcc bash”h]”hŒ)scripts/container -si kernel.org/gcc bash”…”�”}”hjJsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´Kñhj’h²hubhì)�”}”(hŒ“To build the HTML documentation, which requires the ``kdocs`` image built with ``make PREFIX=kernel.org/ extra`` as it's not a compiler toolchain::”h]”(hŒ4To build the HTML documentation, which requires the ”…”�”}”(hjXh²hh³Nh´Nubhö)�”}”(hŒ ``kdocs``”h]”hŒkdocs”…”�”}”(hj`h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjXubhŒ image built with ”…”�”}”(hjXh²hh³Nh´Nubhö)�”}”(hŒ!``make PREFIX=kernel.org/ extra``”h]”hŒmake PREFIX=kernel.org/ extra”…”�”}”(hjrh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjXubhŒ$ as it’s not a compiler toolchain:”…”�”}”(hjXh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Kóhj’h²hubj/)�”}”(hŒ3scripts/container -i kernel.org/kdocs make htmldocs”h]”hŒ3scripts/container -i kernel.org/kdocs make htmldocs”…”�”}”hjŠsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´Köhj’h²hubhŒtarget”“”)�”}”(hŒ.. _config_file:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œ config-file”uh1j˜h´Køhj’h²hh³hÇubeh}”(h]”Œexamples”ah ]”h"]”Œexamples”ah$]”h&]”uh1hÖhhØh²hh³hÇh´K·ubh×)�”}”(hhh]”(hÜ)�”}”(hŒConfiguration File”h]”hŒConfiguration File”…”�”}”(hj±h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhj®h²hh³hÇh´Kûubhì)�”}”(hXBBy default, the tool will look for a configuration file named ``.container.toml`` in the current working directory. If not found, it will be silently ignored as it's not required. Alternatively, any other path can be specified with the ``-c`` option in which case the file needs to be present or an error will be raised.”h]”(hŒ>By default, the tool will look for a configuration file named ”…”�”}”(hj¿h²hh³Nh´Nubhö)�”}”(hŒ``.container.toml``”h]”hŒ.container.toml”…”�”}”(hjÇh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj¿ubhŒŸ in the current working directory. If not found, it will be silently ignored as it’s not required. Alternatively, any other path can be specified with the ”…”�”}”(hj¿h²hh³Nh´Nubhö)�”}”(hŒ``-c``”h]”hŒ-c”…”�”}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj¿ubhŒN option in which case the file needs to be present or an error will be raised.”…”�”}”(hj¿h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Kýhj®h²hubhì)�”}”(hXlIts data follows the standard TOML format and is made up of different sections with ``DEFAULT`` as the default one. Other sections may be used to define alternative profiles under arbitrary names which can be selected by the ``-p`` option. Command line options take precedence over configuration values, and profile sections take precedence over the default one.”h]”(hŒTIts data follows the standard TOML format and is made up of different sections with ”…”�”}”(hjñh²hh³Nh´Nubhö)�”}”(hŒ ``DEFAULT``”h]”hŒDEFAULT”…”�”}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjñubhŒƒ as the default one. Other sections may be used to define alternative profiles under arbitrary names which can be selected by the ”…”�”}”(hjñh²hh³Nh´Nubhö)�”}”(hŒ``-p``”h]”hŒ-p”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjñubhŒ„ option. Command line options take precedence over configuration values, and profile sections take precedence over the default one.”…”�”}”(hjñh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Mhj®h²hubhì)�”}”(hŒ&Supported options in each section are:”h]”hŒ&Supported options in each section are:”…”�”}”(hj# h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´M hj®h²hubhì)�”}”(hŒ ``env_file``”h]”hö)�”}”(hj3 h]”hŒenv_file”…”�”}”(hj5 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj1 ubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´M hj®h²hubjd)�”}”(hŒdPath to an environment file to load in the container, equivalent to the ``-e`` command line option. ”h]”hì)�”}”(hŒcPath to an environment file to load in the container, equivalent to the ``-e`` command line option.”h]”(hŒHPath to an environment file to load in the container, equivalent to the ”…”�”}”(hjL h²hh³Nh´Nubhö)�”}”(hŒ``-e``”h]”hŒ-e”…”�”}”(hjT h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjL ubhŒ command line option.”…”�”}”(hjL h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´M hjH ubah}”(h]”h ]”h"]”h$]”h&]”uh1jch³hÇh´M hj®h²hubhì)�”}”(hŒ ``image``”h]”hö)�”}”(hjt h]”hŒimage”…”�”}”(hjv h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjr ubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Mhj®h²hubjd)�”}”(hŒRName of the container image to use, equivalent to the ``-i`` command line option. ”h]”hì)�”}”(hŒQName of the container image to use, equivalent to the ``-i`` command line option.”h]”(hŒ6Name of the container image to use, equivalent to the ”…”�”}”(hj� h²hh³Nh´Nubhö)�”}”(hŒ``-i``”h]”hŒ-i”…”�”}”(hj• h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj� ubhŒ command line option.”…”�”}”(hj� h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Mhj‰ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jch³hÇh´Mhj®h²hubhì)�”}”(hŒ ``runtime``”h]”hö)�”}”(hjµ h]”hŒruntime”…”�”}”(hj· h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj³ ubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Mhj®h²hubjd)�”}”(hŒMName of the container runtime, equivalent to the ``-r`` command line option. ”h]”hì)�”}”(hŒLName of the container runtime, equivalent to the ``-r`` command line option.”h]”(hŒ1Name of the container runtime, equivalent to the ”…”�”}”(hjÎ h²hh³Nh´Nubhö)�”}”(hŒ``-r``”h]”hŒ-r”…”�”}”(hjÖ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjÎ ubhŒ command line option.”…”�”}”(hjÎ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´MhjÊ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jch³hÇh´Mhj®h²hubhì)�”}”(hŒ``uid`` / ``gid`` (integers)”h]”(hö)�”}”(hŒ``uid``”h]”hŒuid”…”�”}”(hjø h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjô ubhŒ / ”…”�”}”(hjô h²hh³Nh´Nubhö)�”}”(hŒ``gid``”h]”hŒgid”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjô ubhŒ (integers)”…”�”}”(hjô h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Mhj®h²hubjd)�”}”(hŒ€User and group ID numbers to use inside the container, equivalents to the ``-u`` and ``-g`` command line options respectively. ”h]”hì)�”}”(hŒ~User and group ID numbers to use inside the container, equivalents to the ``-u`` and ``-g`` command line options respectively.”h]”(hŒJUser and group ID numbers to use inside the container, equivalents to the ”…”�”}”(hj& h²hh³Nh´Nubhö)�”}”(hŒ``-u``”h]”hŒ-u”…”�”}”(hj. h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj& ubhŒ and ”…”�”}”(hj& h²hh³Nh´Nubhö)�”}”(hŒ``-g``”h]”hŒ-g”…”�”}”(hj@ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj& ubhŒ# command line options respectively.”…”�”}”(hj& h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Mhj" ubah}”(h]”h ]”h"]”h$]”h&]”uh1jch³hÇh´Mhj®h²hubhì)�”}”(hŒ?Here's a sample configuration with an extra ``clang`` profile::”h]”(hŒ.Here’s a sample configuration with an extra ”…”�”}”(hj^ h²hh³Nh´Nubhö)�”}”(hŒ ``clang``”h]”hŒclang”…”�”}”(hjf h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhj^ ubhŒ profile:”…”�”}”(hj^ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´Mhj®h²hubj/)�”}”(hŒu[DEFAULT] runtime = "podman" image = "tuxmake/korg-gcc" [clang] image = "tuxmake/korg-clang" env_file = ".clang.env"”h]”hŒu[DEFAULT] runtime = "podman" image = "tuxmake/korg-gcc" [clang] image = "tuxmake/korg-clang" env_file = ".clang.env"”…”�”}”hj~ sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´M!hj®h²hubhì)�”}”(hŒCIt mentions a ``.clang.env`` file which simply contains this flag::”h]”(hŒIt mentions a ”…”�”}”(hjŒ h²hh³Nh´Nubhö)�”}”(hŒ``.clang.env``”h]”hŒ .clang.env”…”�”}”(hj” h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hõhjŒ ubhŒ& file which simply contains this flag:”…”�”}”(hjŒ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÇh´M)hj®h²hubj/)�”}”(hŒLLVM=1”h]”hŒLLVM=1”…”�”}”hj¬ sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j.h³hÇh´M+hj®h²hubhì)�”}”(hŒ;Let's take a look again at this example mentioned earlier::”h]”hŒ