[lxc-users] newbie question, lxd launch without start container
Stéphane Graber
stgraber at ubuntu.com
Sun Oct 11 16:44:21 UTC 2015
On Sun, Oct 11, 2015 at 10:09:22AM -0500, Yonsy Solis wrote:
> This is a question, and i don't find answers now, searching in internet :/
> (weird thing)
>
> I need to launch a container in lxd, but without start the container, yes, I
> can launch a new one from one image now with:
>
> lxc launch Image container1
>
> and this works, good, but this one starts container1 automatically, so,
> exist any other command that create container1 from Image without starting
> this one ? I am doing one prototype script now, create the container from
> image and starts this one, but, in the future, container1 will be stopped:
>
> My idea, in script:
>
> 1. Create container from Image, without launching this
> 2. start container (lxc start ...)
>
> yes i can code exceptions now with "lxc launch", but if i can do (1), the
> exception condition will be more simple.
>
>
> Yonsy Solis
lxc init Image container1
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20151011/a890564b/attachment.sig>
More information about the lxc-users
mailing list