News for hackers. Stuff that matters.
Re:Show HN: Plash – Build and run containers by miduil on Tuesday September 25, 2018 @08:42AM (#18065815)
I think you can already build Docker images via Docker within travis CI, because they somehow provide you (semi?-)privileged access to the required Linux cgroup and namespace features.

If you are running within a regular Docker container commands such as

     sysctl -w kernel.unprivileged_userns_clone=1
are not possible, due to /sys being read-only.

Am I doing something wrong?

Re:Show HN: Plash – Build and run containers by ihucos on Tuesday September 25, 2018 @09:11AM (#18066018)
> I think you can already build Docker images via Docker within travis CI, [...]

The nice think about plash is that you don't have to worry about "official" support.

> [...] due to /sys being read-only.

Dammit, no, so yeah, apparently unfortunately for regular docker containers (not privileged ones) you need to disable unsharing in plash (export PLASH_NO_UNSHARE=1). In that case the only requirements are chroot, a rudimentary mount binary and overlay OR unionfs-fuse and root access. So it should even run in BSD/Minix/macOS and stuff like that, BUT the mountpoints will not get cleaned up. For an instance running for a while that would be a problem, for a temporary docker container not.