Add -s flag to lxc-destroy
Closed this issue · 4 comments
vagrant destroy
will fail if your box has any associated snapshots:
Destroying drifter-jessie64-base_default_1481013000756_8417 failed: drifter-jessie64-base_default_1481013000756_8417 has snapshots.
I know Vagrant doesn't allow to create snapshots so you're not supposed to have any, but you can still create snapshots manually and in that case I'd expect vagrant destroy
to still work properly. Adding the -s
flag to lxc-destroy
would fix this.
Doesn't vagrant offer snapshots, at least for native providers like virtualbox? https://www.vagrantup.com/docs/cli/snapshot.html
You're right, I didn't know about this. It looks like vagrant-lxc doesn't support this though, but I guess it would be quite simple to add since it's just about forwarding the commands to lxc-snapshot
.