Skip to content

Commit 9fef56e

Browse files
committed
create /run/sshd in container images so sshd can start
1 parent a605c5b commit 9fef56e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)