Skip to content

Commit bdadf83

Browse files
committed
Install openssh-server in docker images
1 parent 0e612d4 commit bdadf83

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

Dockerfile.alma9

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
1212
rm -f /lib/systemd/system/basic.target.wants/*;\
1313
rm -f /lib/systemd/system/anaconda.target.wants/*;
1414

15+
RUN dnf install -y openssh-server
16+
1517
VOLUME [ "/sys/fs/cgroup" ]
1618

1719
CMD ["/usr/sbin/init"]

Dockerfile.debian12

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM debian:12
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

5-
RUN apt update && apt install -y ssh systemd
5+
RUN apt update && apt install -y openssh-server systemd
66

77
RUN echo exit 0 > /usr/sbin/policy-rc.d
88

Dockerfile.oracle9

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
1212
rm -f /lib/systemd/system/basic.target.wants/*;\
1313
rm -f /lib/systemd/system/anaconda.target.wants/*;
1414

15+
RUN dnf install -y openssh-server
16+
1517
VOLUME [ "/sys/fs/cgroup" ]
1618

1719
CMD ["/usr/sbin/init"]

Dockerfile.rocky9

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
1414
rm -f /lib/systemd/system/basic.target.wants/*;\
1515
rm -f /lib/systemd/system/anaconda.target.wants/*;
1616

17+
RUN dnf install -y openssh-server
18+
1719
VOLUME [ "/sys/fs/cgroup" ]
1820

1921
CMD ["/usr/sbin/init"]

Dockerfile.ubuntu24

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ubuntu:24.04
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

5-
RUN apt update && apt install -y ssh systemd
5+
RUN apt update && apt install -y openssh-server systemd
66

77
RUN echo exit 0 > /usr/sbin/policy-rc.d
88

0 commit comments

Comments
 (0)