For the sake of whoever will come here at a later time…
actually the step "network delete <whatever came from list>
" is not going to work for (at least) two reasons:
- (trivial)
lxc network list
will list all networks and you don’t want to delete them all. - (less trivial) even after all containers/images are gone
lxdbr0
network is still owned bydefault
so anlxc network detach-profile lxdbr0 default
is needed beforelxc network delete lxdbr0
. - (nitpick) you forgot backticks around
echo '{"config": {}}' | lxc profile edit default
so the quoting marks got converted making the line fail if used by copy&paste.
Many thanks for your explanation.