From 379ea54578233e0c313ca1bc18ff9926119b9ba3 Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Mon, 12 Jul 2021 19:01:27 +0200 Subject: [PATCH] Update Dockerfile --- images/docker-host/Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/images/docker-host/Dockerfile b/images/docker-host/Dockerfile index 3c36090..8a485d4 100644 --- a/images/docker-host/Dockerfile +++ b/images/docker-host/Dockerfile @@ -18,8 +18,6 @@ RUN set -xe && \ RUN mkdir -p /run/systemd && echo 'docker' > /run/systemd/container -CMD ["/bin/bash"] - RUN apt-get update && \ apt-get install -y --no-install-recommends \ systemd systemd-sysv libsystemd0 ca-certificates dbus \ @@ -46,6 +44,12 @@ RUN apt-get update && \ /usr/share/doc/* /usr/share/man/* /usr/share/local/* && \ usermod -a -G docker admin +RUN apt-get update && \ + apt-get install --no-install-recommends -y \ + openssh-server && \ + mkdir /home/admin/.ssh && \ + chown admin:admin /home/admin/.ssh + # Extra deps ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ @@ -55,3 +59,4 @@ RUN apt-get update \ && rm -rf /var/lib/apt/list/* ENTRYPOINT ["/sbin/init" "--log-level=err"] +CMD ["/bin/bash"]