Start an ephemeral copy of an existing container
lxc-start-ephemeral \kx [-o] [-n] [-d] [--bdir] [--user] [--key] [--union-type] [--keep-data] [COMMAND]
lxc-start-ephemeral start an ephemeral copy of an existing container.
\*(T<-o\*(T>
Original container name
\*(T<[-n]\*(T>
Name of the ephemeral container (defaults to a random suffix).
\*(T<[-d]\*(T>
Start the container in background and print the name and IP. This option can't be used if a command is passed.
\*(T<[--bdir]\*(T>
Directory to bind mount into container. Can be passed multiple times.
\*(T<[--user]\*(T>
The user to connect to the container as. Used when passing a command to lxc-start-ephemeral.
\*(T<[--key]\*(T>
Copy the provided SSH public key into the container.
\*(T<[--union-type]\*(T>
Force a specific union file system. Can be one of: overlayfs aufs
\*(T<[--keep-data]\*(T>
Use a persistent backend instead of tmpfs. With this option, you can lxc-stop and lxc-start the no longer so ephemeral container (it's still an overlay, but a persistent one).
\*(T<[COMMAND]\*(T>
Immediately run the provided command in the container. This currently uses ssh (not attach) and is incompatible with daemon mode.
lxc-start-ephemeral -o p1
Simply start an ephemeral container and attach to the console. This container will be based on existing container "p1".
lxc-start-ephemeral -o p1 -n p1-ephemeral -d
Start an ephemeral container based on p1 called p1-ephemeral and print its IP and name to the console instead of attaching.
St\('ephane Graber <\*(T<[email protected]\*(T>>