[lxc-users] "termination protection"?

Tomasz Chmielewski mangoo at wpkg.org
Mon Jan 25 17:32:44 UTC 2016


Is there a way to protect the containers against accidental termination?

For example:

# lxc list
| container-2016-01-25-17-20-11 | RUNNING | 10.190.0.50 (eth0)         
(...)

# lxc delete container-2016-01-25-17-20-11

No longer there!


Some kind of "lxc config set containername allowdelete=0" would be very 
useful:

- "s" is next to "d" on the keyboard, so it's easy to delete the 
container with:

lxc d-press-tab containername

- it would feel safer to protect important containers this way

- probably "lxc config set containername allowdelete=0" should not 
protect snapshots, if named explicitely, i.e. "lxc delete 
containername/snapshot"


Tomasz Chmielewski
http://wpkg.org



More information about the lxc-users mailing list