Usage: enroot export [options] [--] NAME
Create a container image from a container root filesystem.
Options:
-o, --output Name of the output image file (defaults to "NAME.sqsh")
-f, --force Overwrite an existing container image
Export a container root filesystem from under $ENROOT_DATA_PATH/
to a container image.
The resulting image can be unpacked using the create command.
Setting | Default | Description |
---|---|---|
ENROOT_MAX_PROCESSORS |
$(nproc) |
Maximum number of processors to use for parallel tasks (0 means unlimited) |
ENROOT_SQUASH_OPTIONS |
-comp lzo -noD |
Options passed to mksquashfs to produce container images |
ENROOT_FORCE_OVERRIDE |
no |
Overwrite the container image if it already exists (same as --force ) |
# Create an Alpine linux container image
$ cd ~/.local/share/enroot && mkdir alpine
$ curl -fSsL http://dl-cdn.alpinelinux.org/[...] | tar -C alpine -xz
$ enroot export --output alpine.sqsh alpine