Skip to content

Commit 6bb3561

Browse files
committed
Add Dockerfile.oracle10
1 parent b4ba772 commit 6bb3561

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Dockerfile.oracle10

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM oraclelinux:10
2+
3+
ENV container docker
4+
5+
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \
6+
systemd-tmpfiles-setup.service ] || rm -f $i; done); \
7+
rm -f /lib/systemd/system/multi-user.target.wants/*;\
8+
rm -f /etc/systemd/system/*.wants/*;\
9+
rm -f /lib/systemd/system/local-fs.target.wants/*; \
10+
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
11+
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
12+
rm -f /lib/systemd/system/basic.target.wants/*;\
13+
rm -f /lib/systemd/system/anaconda.target.wants/*;
14+
15+
RUN dnf install -y openssh-server
16+
17+
VOLUME [ "/sys/fs/cgroup" ]
18+
19+
CMD ["/usr/sbin/init"]

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ If you use a non-root user, please add `sudo` before the commands.
2222
```
2323
docker build . --file Dockerfile.ubuntu24 --tag weizhouapache/docker-systemd:latest-ubuntu24
2424
docker build . --file Dockerfile.debian12 --tag weizhouapache/docker-systemd:latest-debian12
25+
2526
docker build . --file Dockerfile.alma9 --tag weizhouapache/docker-systemd:latest-alma9
2627
docker build . --file Dockerfile.oracle9 --tag weizhouapache/docker-systemd:latest-oracle9
2728
docker build . --file Dockerfile.rocky9 --tag weizhouapache/docker-systemd:latest-rocky9
29+
30+
docker build . --file Dockerfile.oracle10 --tag weizhouapache/docker-systemd:latest-oracle10
2831
```
2932

3033
You can find the docker images ready for use on:

0 commit comments

Comments
 (0)