tinydeb: use systemd instead of no init at all

This commit is contained in:
nemunaire 2019-04-19 21:15:44 +02:00 committed by Pierre-Olivier Mercier
parent 12e6ae3be9
commit 9139129430
2 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
nano \
openssh-server \
python \
systemd-sysv \
vim.tiny \
&& rm -rf /var/lib/apt/lists/*

View File

@ -207,9 +207,13 @@ services:
- name: matrix
image: nemunaire/tinydeb:41da107f8a81d66ed1ae6ef5fa29e5b42b3faa47
net: /run/netns/chat
command: ["/bin/sh", "-c", "mkdir -p /run/sshd && exec /usr/sbin/sshd -D"]
command: ["/sbin/init"]
#command: ["/bin/sh", "-c", "mkdir -p /run/sshd && exec /usr/sbin/sshd -D"]
capabilities:
- all
mounts:
- type: cgroup
options: ["rw","nosuid","noexec","nodev","relatime"]
binds:
- /etc/dresolv.conf:/etc/resolv.conf
- /etc/services:/etc/services:ro