docker image create
Create a new base image
Usage
$ klee image create [OPTIONS] METHOD [SOURCE]...
Refer to the options section for an overview of available OPTIONS
for this command.
Description
Create a base image from a tar-archive or a ZFS dataset.
METHOD can be one of the following:
- fetch-auto: Automatically fetch a release/snapshot from the offical FreeBSD mirrors, based on host information from uname(1). SOURCE is not used.
- fetch: Fetch a custom version of the base system and use it for image creation. SOURCE is a valid url for fetch(1), pointing to a base.txz file locally or remote.
- zfs-copy: Create a base image from a copy of an existing ZFS dataset. SOURCE is the dataset.
- zfs-clone: Create a base image from a clone of an existing ZFS dataset. SOURCE is the dataset.
Options
Name, shorthand | Default | Description |
--tag , -t |
Name and optionally a tag in the 'name:tag' format | |
--dns |
Whether or not to copy /etc/resolv.conf from the host to the new image. [default: dns] | |
--localtime |
Whether or not to copy /etc/localtime from the host to the new image, if it exists. [default: localtime] | |
--update |
Update the userland using freebsd-update(8). See the freebsd-update man-page for details on which FreeBSD versions can be updated. [default: no-update] | |
--autotag , -a |
Autogenerate a nametag 'FreeBSD-\<version\>:latest'. If tag is set this is ignored. Method fetch-auto only. [default: autotag] |
|
--help |
Show this message and exit. |
Parent command
Command | Description |
---|---|
klee image | Manage images |