Skip to content

Commit 8d70c04

Browse files
committed
create /run/sshd in container images so sshd can start
1 parent ae3edde commit 8d70c04

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spec/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ RUN chown -R test:sudo /home/test
5959

6060
# Run the sshd service in the background
6161
RUN echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config.d/pubkey_auth.conf && \
62-
echo "LogLevel VERBOSE" >> /etc/ssh/sshd_config.d/log_level.conf
62+
echo "LogLevel VERBOSE" >> /etc/ssh/sshd_config.d/log_level.conf && \
63+
mkdir /run/sshd
6364

6465
EXPOSE 22
6566

0 commit comments

Comments
 (0)