local: nested lxc containers

Frederico Araujo araujof at gmail.com
Wed Oct 14 23:13:27 UTC 2015


Hi,

I wrote a charm for an application I developed which deploys some lxc
containers. I wanted to test it in my local environment (bootstrapped with
juju-quickstart), but I couldn't find a way to configure juju to
automatically create containers with specific settings---in my case,
allowing for nested lxc containers. I need to somehow change the
configuration fo the parent lxc container created by juju during deployment
of the charm to add these two lines:

lxc.mount.auto = cgroup
lxc.aa_profile = lxc-container-default-with-nesting

After manually adding these lines to the parent container created by juju,
the internal containers work. The problem of adding them manually is that
juju won't be able to start the internal containers automatically during
juju deploy.

Any ideas?

Thanks,
Fred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20151014/5ecd4860/attachment.html>


More information about the Juju mailing list