Files
linuxkit/alpine/packages/containerd/etc/init.d/containerd
Justin Cormack 3e6301f501 Containerize binfmt_misc
- statically make containerd symlinks so rootfs can be read only
- run binfmt_misc in a containerd container
- ship arm, aarch64, ppc64le qemu static versions that always "just work" as this is supported in Linux 4.8

fix #53

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-11-30 12:49:37 +00:00

32 lines
569 B
Plaintext
Executable File

#!/sbin/openrc-run
depend()
{
before docker
}
start()
{
ebegin "Running system containerd"
# set ulimits as high as possible
ulimit -n 1048576
ulimit -p unlimited
/usr/bin/containerd 1>&2 2>/var/log/containerd.log &
ewaitfile 5 /var/run/containerd/containerd.sock
eend $? "Failed to start system containerd"
ebegin "Running system containers"
for f in /containers/*
do
# note we attach, so will be synchronous for now
containerd-ctr containers start --no-pivot --attach "$(basename $f)" "$f"
done
eend $? "Failed to start system containers"
}