mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-03 21:52:31 +09:00
- 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>
24 lines
381 B
Bash
Executable File
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}"
|