diskimage-builder/diskimage_builder/elements/containerfile
Michal Nasiadka a02cb9ff74 containerfile: add support for Docker
In some build environments Docker is already installed - and adding
podman is not an option.  Add a new variable to toggle this, and
rename the now incorrectly titled DIB_CONTAINERFILE_PODMAN_ROOT to
just ...RUNTIME_ROOT to match.

Change-Id: I677e4f491b40360dceabdf4f2a9e64c7cb493dc7
2022-03-11 14:04:52 +11:00
..
root.d containerfile: add support for Docker 2022-03-11 14:04:52 +11:00
test-elements/focal-build-succeeds Run functional tests on Debian Bullseye 2021-10-20 09:39:27 +11:00
element-provides Add containerfile element 2021-05-07 13:54:59 +10:00
README.rst containerfile: add support for Docker 2022-03-11 14:04:52 +11:00

=============
containerfile
=============

Base element for creating images from container files (aka
Dockerfiles).

Usually this element will be called via a more specific distro element
which provides an environment for building a full image.  This element
will search active elements for a container file located in
``containerfiles/${DIB_RELEASE}``.

Alternatively, to use this element directly supply the path to a
container file in the environment variable
``DIB_CONTAINERFILE_DOCKERFILE``.

Set ``DIB_CONTAINERFILE_RUNTIME`` to ``docker`` to use Docker for building
images (default is ``podman``).

Set ``DIB_CONTAINERFILE_RUNTIME_ROOT`` to ``1`` to run the runtime
(Docker or ``podman``, per above) as ``root``.