mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-14 06:09:48 +00:00
Use containerd to run containers
Because we are not yet using the image store, this requires a patched `ctr` that can run a specified rootfs rather than an image. We will switch to the image store later, but this requires extensive build changes. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -15,7 +15,6 @@ then
|
||||
fi
|
||||
|
||||
# start service containers
|
||||
# temporarily using runc not containerd
|
||||
|
||||
if [ -d /containers/services ]
|
||||
then
|
||||
@@ -25,7 +24,7 @@ then
|
||||
/bin/mount --bind "$f/rootfs" "$f/rootfs"
|
||||
mount -o remount,rw "$f/rootfs"
|
||||
log="/var/log/$base.log"
|
||||
/sbin/start-stop-daemon --start --pidfile /run/$base.pid --exec /usr/bin/runc -- run --bundle "$f" --pid-file /run/$base.pid "$(basename $f)" </dev/null 2>$log >$log &
|
||||
ctr run --runtime-config "$f/config.json" --rootfs "$f/rootfs" --id "$(basename $f)" </dev/null 2>$log >$log &
|
||||
printf " - $base\n"
|
||||
done
|
||||
fi
|
||||
|
Reference in New Issue
Block a user