mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-08 03:10:20 +00:00
As this does not use containerd at all, this means you can run very minimal setups with just `runc` if you use no services, for example most of our tests do not actually use services, or if you have other similar very minimal use cases. Move ulimit setup to `init` which makes more sense. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
24 lines
444 B
Bash
Executable File
24 lines
444 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# bring up containerd
|
|
printf "\nStarting containerd\n"
|
|
/usr/bin/containerd &
|
|
|
|
# wait for socket to be there
|
|
while [ ! -S /run/containerd/containerd.sock ]
|
|
do
|
|
sleep 0.1
|
|
done
|
|
|
|
# start service containers
|
|
|
|
if [ -d /containers/services ]
|
|
then
|
|
for f in $(find /containers/services -mindepth 1 -maxdepth 1 | sort)
|
|
do
|
|
/bin/mount --bind "$f/rootfs" "$f/rootfs"
|
|
mount -o remount,rw "$f/rootfs"
|
|
service start "$(basename $f)"
|
|
done
|
|
fi
|