[Buildroot] [PATCH v6 3/3] docker-engine: new package

Andrew Webster Awebster at arcx.com
Tue Jun 7 20:37:51 UTC 2016


> From: Christian Stewart [mailto:christian at paral.in] 
> Sent: Tuesday, June 07, 2016 4:18 PM

> > Does it makes sense to also add selects for BR2_PACKAGE_IPTABLES and
> > BR2_PACKAGE_CA_CERTIFICATES here?  They are not build dependencies,
> > but run-time dependencies.  It may be possible to do some things
> > without the certificates, but I think iptables is always required.

> Not sure if these are actually required. The iptables calls are direct, not through calling a cli.

On my system, if I don't have the iptables executable in the path, docker fails to start with the following:

FATA[0001] Error starting daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain: Iptables not found

Have I misconfigured something?

> Certs are a different story but that might be out of the scope of the Docker package. It can run stuff locally without hitting the internet at all.

Yup.  I guess there's no formal way to "recommend" a package.

> > On a similar topic, docker expects a bunch of cgroup mounts to exist
> > somewhere on the system.  Is this something that should be left up to
> > the rootfs author (in which case maybe the help could be extended to
> > explain this), or should the docker-engine recipe attempt to modify
> > fstab somehow?  I'm not sure if there is a way to actually do that
> > though.

> This is unnecessary. On all of the systems I'm running, with NO fstab modifications or really anything but enabling the Docker package, it works fine. Docker might be doing the mounting automatically.

You are correct.  This was my fault, I missed doing the mounts in the init.  Let me correct it, then I'll send it out.

Andrew



More information about the buildroot mailing list