Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.05 KB

export.md

File metadata and controls

34 lines (24 loc) · 1.05 KB

Usage

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

Description

Export a container root filesystem from under $ENROOT_DATA_PATH/ to a container image.
The resulting image can be unpacked using the create command.

Configuration

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)

Example

# 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