Files
one/share/pkgs/services/supervisor/centos8/scripts/containerd.sh
T
Petr Ospalý 2edcdae638 F OpenNebula/one#5178: Add docker services (#511)
- New supervisord service containerd
- New supervisord service docker
- Small fix in function.sh to pick up also socket files

Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
2020-12-02 15:25:49 +01:00

24 lines
381 B
Bash
Executable File

#!/bin/sh
set -e
#
# functions
#
. /usr/share/one/supervisor/scripts/lib/functions.sh
#
# run service
#
CONTAINERD_SOCK=/run/containerd/containerd.sock
export CONTAINERD_SOCK
# this will most likely not work inside the container
msg "Try to load overlayfs module"
/sbin/modprobe overlay || true
msg "Service started!"
exec /usr/bin/containerd --address "${CONTAINERD_SOCK}"