This is the current implementation of lxc-copy. The functionalities of lxc-clone
and lxc-start-ephemeral are merged.

Once the discussion dies down, all initial bugs have been fixed and the names
for the command-line parameters have been settled I will send the patch for the
corresponding manpage.

Ephemeral container can be started with:

        lxc-copy -n aa -e

mounts can be of type {bind,union} and are specified e.g.

        lxc-copy -n aa -e -m
        bind=/src:/dest:ro,bind=/src:/dest:rw,union=/src:/dest

where the type of unionfs to use is determined by what backend the container
uses (default for both is overlayfs). That is

        lxc-copy -n aa -e -B aufs -m
        bind=/src:/dest:ro,bind=/src:/dest:rw,union=/src:/dest

implies aufs is used for the union mounts.

Christian Brauner (1):
  Add lxc-copy executable     lxc-copy merges lxc-clone +
    lxc-start-ephemeral into one

 src/lxc/Makefile.am |   2 +
 src/lxc/arguments.h |   6 +-
 src/lxc/lxc_copy.c  | 723 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 730 insertions(+), 1 deletion(-)
 create mode 100644 src/lxc/lxc_copy.c

-- 
2.5.3

_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to