mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-25 09:24:34 +00:00
- 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>
32 lines
569 B
Plaintext
Executable File
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"
|
|
}
|