Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 2759  / 3 Years ago, mon, october 11, 2021, 11:33:58

I'm doing some testing and sometimes I have issues with containers and juju. How do I clean up a machine so that I can start using the local provider "from scratch" without reinstalling?


More From » juju

 Answers
1

LXC containers and the Juju environment need to persist through a reboot, so everything is not contained in one place.



First, ensure that you have the environment destroyed and the containers are not running. Then remove the following files and directories:



/etc/init/juju-* 
/etc/lxc/auto/juju-*
/etc/rsyslog.d/25-juju*
/var/lib/juju/containers/*
/var/lib/lxc/juju-*
~/.juju/<env>
~/.juju/environments/<env>.jenv


Then you can reboostrap with a clean environment.



In certain cases you might need to list, stop, and destroy containers by hand, do this before removing the Juju files.




[#27552] Wednesday, October 13, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
curatekill

Total Points: 376
Total Questions: 117
Total Answers: 102

Location: Wales
Member since Mon, May 17, 2021
3 Years ago
curatekill questions
Fri, Sep 30, 22, 17:23, 2 Years ago
Sun, May 21, 23, 23:32, 1 Year ago
Sat, May 15, 21, 11:19, 3 Years ago
;