mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-06 15:54:13 +00:00
This may occur if /var/lib/container happens to be on persistent storage. Signed-off-by: Ian Campbell <ijc@docker.com>
26 lines
465 B
Bash
Executable File
26 lines
465 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
|
|
|
|
service system-init
|
|
|
|
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
|