1. 程式人生 > 其它 >oracle docker image

oracle docker image

https://github.com/oracle/docker-images/tree/main/OracleDatabase/SingleInstance

使用docker啟動失敗:

docker run --name oracle19300 \
-p 1521:1521 -p 5500:5500 -p 2484:2484 \
-e ORACLE_SID=SUCCESS \
-e ORACLE_PDB=SUCCESSPDB \
-e ORACLE_PWD=123456 \
-e INIT_PGA_SIZE=1544 \
-e ORACLE_CHARACTERSET=utf-8 \
-e ENABLE_ARCHIVELOG=true \
-e ENABLE_TCPS=true \
-v /opt/oracle/oradata \
oracle/database:19.3.0-ee
ERRO[0000] Removing timer for container 9xxxxxxxxxxxxxxxxxxx42 healthcheck: unable to get systemd connection to remove healthchecks: dial unix /run/systemd/private: connect: no such file or directory
Error: netavark: unable to append rule '-d 10.88.0.0/16 -j ACCEPT' to table 'nat': code: 4, msg: iptables v1.8.7 (nf_tables):  RULE_APPEND failed (No such file or directory): rule in chain NETAVARK-1D8721804F16F

ERRO[0000] Removing timer for container這個錯誤資訊可以忽略, 具體的錯誤原因實際是下面一條Error: netavark: unable to append rule,
因為podman依賴的應該是老版本的iptables, 新版本iptables不相容, 切換到老版本的方法:

yum install iptables-legacy
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy

update-alternatives這個命令竟然可以在oracle9 centos中使用