Skip to content
This is the documentation for main, which is not released yet. Read the latest.

dicer snapshot fork

Creates an instance called NAME as a copy of the one a snapshot was taken of, with its definition and disk but an address of its own, on the same network unless --network is given. It publishes no ports unless -p is given: two instances cannot publish the same host port.

Without NAME, the copy is named after the snapshot, with a random suffix, such as web-golden-k3x9.

A memory snapshot’s copy runs, resumed where the snapshot’s guest was and given its own name and address before it can reach the network. A disk snapshot’s copy is stopped, to boot from the snapshot’s disk.

Usage

$ dicer snapshot fork SNAPSHOT [NAME] [flags]

Examples

$ dicer snapshot fork web-golden
$ dicer snapshot fork web-golden web-2
$ dicer snapshot fork web-golden web-3 -p 8081:80

Flags

FlagDescription
--ip stringStatic IP address (default: assigned from the subnet).
--network stringNetwork to attach to (default: the source instance’s).
-p, --publish stringArrayPublish a guest port on the host, as [[hostIP:]hostPort:]guestPort[/tcp|udp]; without a host port, or with 0, the daemon picks a free one (repeatable).

Global flags

FlagDescription
-D, --debugTrace every call to the daemon on stderr (or set $DICER_DEBUG).
-r, --remote stringDaemon to talk to: a remote’s name, or an address (unix:///PATH or HOST:PORT) (default $DICER_REMOTE, then the current remote, then local).
--request-timeout durationGive up on a single call to the daemon after this long, e.g. 30s (0: never; streams such as logs -f and exec are not bounded).