Spaces:
Runtime error
Runtime error
changed Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
|
@@ -8,7 +8,13 @@ RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/s
|
|
| 8 |
# Set a password for the root user
|
| 9 |
RUN echo "root:Changeme" | chpasswd
|
| 10 |
|
| 11 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
EXPOSE 22
|
| 13 |
|
| 14 |
# Start the SSH service and run bash as the foreground process
|
|
|
|
| 8 |
# Set a password for the root user
|
| 9 |
RUN echo "root:Changeme" | chpasswd
|
| 10 |
|
| 11 |
+
# Create and change ownership of the /run/sshd directory
|
| 12 |
+
USER root
|
| 13 |
+
RUN mkdir /run/sshd
|
| 14 |
+
RUN chown sshuser:sshuser /run/sshd
|
| 15 |
+
USER sshuser
|
| 16 |
+
|
| 17 |
+
# Expose the SSH port
|
| 18 |
EXPOSE 22
|
| 19 |
|
| 20 |
# Start the SSH service and run bash as the foreground process
|