Fix sshd login failure due to root account not having a password, so set it to an empty password

This commit is contained in:
Tony Blyler 2021-05-16 11:51:25 -04:00
parent e4603b7b5b
commit 45b3402101
Signed by: tblyler
GPG key ID: 7F13D9A60C0D678E

View file

@ -4,7 +4,9 @@ RUN apk add --no-cache \
openssh-server \
rsync
RUN mkdir -p /root/.ssh && cp /etc/ssh/sshd_config /etc/default_sshd_config
RUN mkdir -p /root/.ssh && \
cp /etc/ssh/sshd_config /etc/default_sshd_config && \
passwd -d root
COPY ./entrypoint.sh /entrypoint