]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
lxc-destroy: deal with ephemeral containers
authorChristian Brauner <christian.brauner@mailbox.org>
Wed, 10 Feb 2016 01:32:37 +0000 (02:32 +0100)
committerChristian Brauner <christian.brauner@mailbox.org>
Wed, 10 Feb 2016 09:16:22 +0000 (10:16 +0100)
commit2c5f2edeb91100b8debfec90624cd1fe20ee5a8d
tree4534c261f9dc02ed0d2d1ea58dc0d56aadf90f83
parentcd30b4fa22e6311427bb9895f25c703189ba8dc1
lxc-destroy: deal with ephemeral containers

- Ephemeral containers are destroyed on shutdown so we do not destroy them.
- Destroy ephemeral containers with clones: first destroy all the clones, then
  destroy the container.
- Ephemeral containers with snapshots cannot be easily handled but we can
  probably trust that no one will try to make snapshots of an ephemeral
  container.

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
src/lxc/lxc_destroy.c
src/lxc/start.c