<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<style>blockquote.cite
{margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right: 0px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204);}
blockquote.cite2
{margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right: 0px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-top: 3px; padding-top: 0px;}
a img
{border: 0px;}
body
{font-family: 'Segoe UI'; font-size: 12pt;}
</style></head>
<body background=""><div>OK perfect. Thanks!</div><div id="signature_old"><div style="font-family: Tahoma; font-size: 12 pt;"><hr>
<p><strong>Christian Tardif</strong></p></div></div><div><br></div><div><br></div><div><br></div>
<div>------ Message d'origine ------</div>
<div>De: "Stéphane Graber" <<a href="mailto:stgraber@ubuntu.com">stgraber@ubuntu.com</a>></div>
<div>À: "LXC users mailing-list" <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>></div>
<div>Envoyé : 2016-10-19 23:15:43</div>
<div>Objet : Re: [lxc-users] LXD containers always start</div><div><br></div>
<div id="x7909b261411441b" class="plain"><blockquote cite="20161020031543.ud3zuyvbndp2hcl6@castiana" type="cite" class="cite2">
<tt style="word-wrap:break-word"><div>On Thu, Oct 20, 2016 at 03:09:01AM +0000, Christian Tardif wrote:</div>
<blockquote type="cite" class="cite">
<div> I'm trying to restrict some containers from autobooting on every host</div>
<div> restart.</div>
<div> </div>
<div> From the documentation, I tried two approaches:</div>
<div> </div>
<div> lxc config set <containername> boot.autostart false</div>
<div> </div>
<div> or</div>
<div> </div>
<div> lxc config set<containername> boot.autostart 0</div>
<div> </div>
<div> None of these configs work. Containers always boot on restart.</div>
<div> </div>
<div> Checked in the container profile, and there's nothing there regarding</div>
<div> autostart.</div>
<div> </div>
<div> Any help?</div>
<div> </div>
<div> Christian Tardif</div>
</blockquote>
<div> </div>
<div>LXD will restore container state on reboot which is probably the case</div>
<div>here assuming those containers were running at the time the system was</div>
<div>stopped.</div>
<div> </div>
<div>We have merged a fix a few days ago that makes boot.autostart override</div>
<div>this behavior, so that you can set it to "false" as you described above</div>
<div>and it'll do the right thing.</div>
<div> </div>
<div> </div>
<div>That should be in LXD 2.5 and then LXD 2.0.5.</div>
<div> </div>
<div>--</div>
<div>Stéphane Graber</div>
<div>Ubuntu developer</div>
<div><a href="http://www.ubuntu.com">http://www.ubuntu.com</a></div>
</tt></blockquote></div>
</body></html>