File tree Expand file tree Collapse file tree 5 files changed +8
-2
lines changed Expand file tree Collapse file tree 5 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
1212rm -f /lib/systemd/system/basic.target.wants/*;\
1313rm -f /lib/systemd/system/anaconda.target.wants/*;
1414
15+ RUN dnf install -y openssh-server
16+
1517VOLUME [ "/sys/fs/cgroup" ]
1618
1719CMD ["/usr/sbin/init"]
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM debian:12
22
33ARG DEBIAN_FRONTEND=noninteractive
44
5- RUN apt update && apt install -y ssh systemd
5+ RUN apt update && apt install -y openssh-server systemd
66
77RUN echo exit 0 > /usr/sbin/policy-rc.d
88
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
1212rm -f /lib/systemd/system/basic.target.wants/*;\
1313rm -f /lib/systemd/system/anaconda.target.wants/*;
1414
15+ RUN dnf install -y openssh-server
16+
1517VOLUME [ "/sys/fs/cgroup" ]
1618
1719CMD ["/usr/sbin/init"]
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
1414rm -f /lib/systemd/system/basic.target.wants/*;\
1515rm -f /lib/systemd/system/anaconda.target.wants/*;
1616
17+ RUN dnf install -y openssh-server
18+
1719VOLUME [ "/sys/fs/cgroup" ]
1820
1921CMD ["/usr/sbin/init"]
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM ubuntu:24.04
22
33ARG DEBIAN_FRONTEND=noninteractive
44
5- RUN apt update && apt install -y ssh systemd
5+ RUN apt update && apt install -y openssh-server systemd
66
77RUN echo exit 0 > /usr/sbin/policy-rc.d
88
You can’t perform that action at this time.
0 commit comments