linux - systemd support
This commit is contained in:
3
tests/Dockerfile-debian
Normal file
3
tests/Dockerfile-debian
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM debian:buster-slim
|
||||
|
||||
RUN apt update && apt install -y systemd
|
||||
3
tests/Dockerfile-fedora
Normal file
3
tests/Dockerfile-fedora
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM fedora:34
|
||||
|
||||
RUN dnf install -y systemd
|
||||
3
tests/Dockerfile-ubuntu
Normal file
3
tests/Dockerfile-ubuntu
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM ubuntu:focal
|
||||
|
||||
RUN apt update && apt install -y systemd
|
||||
@@ -12,7 +12,7 @@ if [ "$3" == "no" ] ; then
|
||||
fi
|
||||
|
||||
echo "[*] Run $image"
|
||||
id="$(docker run --rm -d -it -p 80:80 -p 443:443 --name "$name" "$image")"
|
||||
id="$(docker run --rm -d -p 80:80 -p 443:443 --privileged=true --name "$name" "$image" /sbin/init)"
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "[!] docker run failed"
|
||||
cleanup "$name"
|
||||
|
||||
Reference in New Issue
Block a user