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
| Flag | Description |
|---|---|
--ip string | Static IP address (default: assigned from the subnet). |
--network string | Network to attach to (default: the source instance’s). |
-p, --publish stringArray | Publish a guest port on the host, as [hostIP:]hostPort:guestPort[/tcp|udp] (repeatable). |
Global flags
| Flag | Description |
|---|---|
-D, --debug | Trace every call to the daemon on stderr (or set $DICER_DEBUG). |
-r, --remote string | Daemon 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 duration | Give 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). |