[lxc-users] create container with service

J Bc javibc at esdebian.org
Thu Aug 28 15:37:40 UTC 2014


Thank you Serge. I like "In the current cloud scene, you would write a
setup script" : )

2014-08-28 15:26 GMT+02:00 Serge Hallyn <serge.hallyn at ubuntu.com>:
> Quoting J Bc (javibc at esdebian.org):
>> Hello, excuse me for the question.
>> Which do you think that is the best way to create a container
>> 'template' with a service, for example, asterisk+mariadb+some files,
>> preconfigured?
>>
>> 1. template and script post-install?
>> 2. create container, cooking, and you have a container for to move?
>
> Depends on how you intend to use and deploy it.  In the current
> cloud scene the cool kids would write a setup script.  Create
> a generic container (say ubuntu-cloud) and use cloud-init to
> have the container on first boot run the setup script.
>
> The docker folks would do your option (2), and that allows you
> to publish the final container.
>
> (Sorry, no definitive answer from me)
>
> -serge
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list