Skip to content

Chrooting Into Built Images

After an image is built, you can run a command in a chroot in that built image.

   stacker chroot - run a command in a chroot

   stacker chroot [command options] [tag] [cmd]

<tag> is the built tag in the stackerfile to chroot to, or the first tag if
none is specified.

<cmd> is the command to run, or /bin/sh if none is specified. To specify cmd,
you must specify a tag.

   --stacker-file value, -f value  the input stackerfile (default: "stacker.yaml")
   --substitute value              variable substitution in stackerfiles, FOO=bar format

Last update: December 15, 2022