[lxc-users] [BUG] lxc-destroy destroying wrong containers

Bostjan Skufca bostjan at a2o.si
Tue Nov 10 14:02:46 UTC 2015


> Looks like lxc-clone should copy the config file at the very end, after
> rootfs.

+1


Use cp analogy for example (with behaviour that most users got used to
expect in the last few decades):

cp -pR dir1 dir2
# (cp gets interrupted for some reason, ctrl+c or whatever, ok, I need
to start again)
rm -rf dir2
cp -pR dir1 dir2

The last thing you would expect is:
cp: cannot stat ‘dir1’: No such file or directory

Right?
So, taking user's existing knowledge and shell habits into account,
this most certainly is a bug in lxc-clone.

b.


More information about the lxc-users mailing list