erikarvstedt / extra-container

Run declarative NixOS containers without full system rebuilds
MIT License
218 stars 16 forks source link

`extra-container destroy` has no effect? #29

Closed bjornfor closed 2 years ago

bjornfor commented 2 years ago
$ extra-container list
demo
$ extra-container destroy demo
$ extra-container list
demo                                   <---- still here!?
$ extra-container destroy --all
$ extra-container list
demo                                   <---- still here!?

Either I'm misunderstanding the purpose of destroy or it's a bug :-) (I thought it'd stop the containers and wipe /var/lib/nixos-containers/NAME.)

Using latest extra-container version (0.10).

erikarvstedt commented 2 years ago

I can't reproduce this, neither locally, nor by running your example in the reference VM (via nix run github:erikarvstedt/extra-container#vm). What's your system environment? Do you use NixOS? If yes, what's your NixOS version and system.stateVersion?

bjornfor commented 2 years ago

This is on Ubuntu 18.04. Thanks for checking. I'll try to debug this from my side then.

bjornfor commented 2 years ago

With set -x debugging I found that it was PEBKAC:

So yeah... completely PEBKAC!

Sorry for the noise and thank you for creating extra-container! I'm really exited to have access to declarative NixOS on impure Ubuntu!