[arch-general] Building in docker?

Magnus Therning magnus at therning.org
Thu Sep 4 01:24:36 EDT 2014

On Wed, Sep 03, 2014 at 12:36:23PM -0400, Leonid Isaev wrote:
> On Wed, Sep 03, 2014 at 09:04:37AM +0200, Magnus Therning wrote:
> > For various reasons I'm looking into not using `makechrootpkg` when
> > building the 200+ packages I put into a non-official repo.  Obviously
> > it's important to keep the building environment separate from my
> > ordinary system environment.  Going to full virtualisation is
> > definitely overkill and the only containers I know of are chroots and
> > docker.
> If by chroot you mean also nspawn, then it is mostly equivalent to
> docker and lxc. The only thing bad about systemd-nspawn is its lack
> of easy config through files (it only supports cmdline switches
> which is ridiculously cumbersome).  Also, docker is more complex
> than a plain lxc-tools approach.

As always complex doesn't automatically translate to complicated ;)

In this particular case I had no issues with following the
instructions I found on docker.  While when spending the same amount
of time on getting lxc to work I get stuck almost immediately:

% lxc-create -n test -t archlinux
lxc_container: No mapping for container root
lxc_container: Error chowning /home/magnus/.local/share/lxc/test/rootfs to container root
lxc_container: Error creating backing store type (none) for test
lxc_container: Error creating container test

And quick googling didn't turn up anything useful.  Reading through
the Linux Containers page [1] didn't help either.


[1]: https://wiki.archlinux.org/index.php/Linux_Containers

Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

In a hierarchy, every employee tends to rise to his level of incompetence.
     -- The Peter Principle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20140904/1dbcb078/attachment.asc>

More information about the arch-general mailing list