[lxc-users] Installing packages in a container while boot up or via script?

Serge Hallyn serge.hallyn at ubuntu.com
Sun Mar 1 23:49:02 UTC 2015


Quoting Anjali Kulkarni (anjali at juniper.net):
> Hi,
> 
> Is there a way to install packages (like bridge utils etc) on some template
> like ubuntu while creating it via lxc-create? I read somewhere about
> --packages command but don't seem to find it anywhere. I want to create a

--packages was a template-specific option to the ubuntu (and probably some
other) templates.

The other common way of doing this would be using a cloud-init/userdata type
of solution, as with the cirros and ubuntu-cloud templates.

> container and install packages on it via a script without manually having to
> login to the container.

-serge


More information about the lxc-users mailing list