tinydeb: use systemd instead of no init at all
This commit is contained in:
parent
12e6ae3be9
commit
9139129430
|
@ -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/*
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue
Block a user