[lxc-users] LXD containers always start
Christian Tardif
christian.tardif at servinfo.ca
Thu Oct 20 03:46:09 UTC 2016
OK perfect. Thanks!
--------------------------------------------------------------------------------
Christian Tardif
------ Message d'origine ------
De: "Stéphane Graber" <stgraber at ubuntu.com>
À: "LXC users mailing-list" <lxc-users at lists.linuxcontainers.org>
Envoyé : 2016-10-19 23:15:43
Objet : Re: [lxc-users] LXD containers always start
>On Thu, Oct 20, 2016 at 03:09:01AM +0000, Christian Tardif wrote:
>> I'm trying to restrict some containers from autobooting on every host
>> restart.
>>
>> From the documentation, I tried two approaches:
>>
>> lxc config set <containername> boot.autostart false
>>
>> or
>>
>> lxc config set<containername> boot.autostart 0
>>
>> None of these configs work. Containers always boot on restart.
>>
>> Checked in the container profile, and there's nothing there regarding
>> autostart.
>>
>> Any help?
>>
>> Christian Tardif
>
>LXD will restore container state on reboot which is probably the case
>here assuming those containers were running at the time the system was
>stopped.
>
>We have merged a fix a few days ago that makes boot.autostart override
>this behavior, so that you can set it to "false" as you described above
>and it'll do the right thing.
>
>
>That should be in LXD 2.5 and then LXD 2.0.5.
>
>--
>Stéphane Graber
>Ubuntu developer
>http://www.ubuntu.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20161020/82aa7483/attachment.html>
More information about the lxc-users
mailing list