[lxc-users] create container with service

Serge Hallyn serge.hallyn at ubuntu.com
Thu Aug 28 13:26:40 UTC 2014


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


More information about the lxc-users mailing list