ch-build2dir1
Build a charliecloud image from dockerfile and unpack it into a directory
Usage
$ ch-build2dir -t TAG [ARGS ...] CONTEXT OUTDIR
Overview
Build a Docker image named TAG described by a Dockerfile (default $CONTEXT/Dockerfile) and unpack it into OUTDIR/TAG. This is a wrapper for ch-build, ch-builder2tar, and ch-tar2dir; see also those man pages.
Arguments:
ARGS
|
additional arguments passed to |
|---|---|
CONTEXT
|
Docker context directory |
OUTDIR
|
directory in which to place image directory (named TAG) and temporary tarball |
-
-t TAG -
name (tag) of Docker image to build
-
--help -
print help and exit
-
--version -
print version and exit
Examples
To build using ./Dockerfile and create image directory /var/tmp/foo:
$ ch-build2dir -t foo . /var/tmp
Same as above, but build with a different Dockerfile:
$ ch-build2dir -t foo -f ./Dockerfile.foo . /var/tmp
Releases
2 releases since Debian 10 (Buster); the text changed 1 time.
-t since Debian 11 (Bullseye).