podman not able to connect to ports when starting oracle db container #23025
Unanswered
abhinaya-raja
asked this question in
Q&A
Replies: 1 comment 4 replies
-
When you set the netns to host all port mappings are ignored as you already share the host network namespace so there is no need to forward ports. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
podman not able to connect to ports when starting oracle db container.
echo "Podman run container"
podman run -p 1521:1521 -p 5500:5500 --entrypoint "/bin/bash" -t -d --name analytics-db --user oracle --cpus=2 --memory="4096" --restart=always --expose=1500-5600 --publish-all -e ORACLE_SID=ANADB -e ORACLE_PDB=ANAPDB -e ORACLE_PWD=${SYSDBA_PASS} -e ORACLE_CHARACTERSET=AL32UTF8 -v analytics-db-data:/opt/oracle/oradata xxx
podman ps -a
output:
22:53:40 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
22:53:40 59b64f9ee611 xxx Less than a second ago Up Less than a second (starting) analytics-db
container configuration:
[containers]
netns="host"
userns="host"
ipcns="host"
utsns="host"
cgroupns="host"
cgroups="enabled"
cgroup_enable="memory"
systemd.unified_cgroup_hierarchy=0
cgroup_memory=1
legacyCgroupv1=true
swapaccount=1
log_driver = "k8s-file"
volumes = [
"/proc:/proc"
]
[engine]
cgroup_manager = "cgroupfs"
events_logger="file"
runtime="crun"
podman inspect analytics-db command shows ports are empty
"HostConfig": {
11:57:54 "Binds": [
11:57:54 "analytics-db-data:/opt/oracle/oradata:rw,rprivate,nosuid,nodev,rbind"
11:57:54 ],
11:57:54 "CgroupManager": "cgroupfs",
11:57:54 "CgroupMode": "host",
11:57:54 "ContainerIDFile": "",
11:57:54 "LogConfig": {
11:57:54 "Type": "k8s-file",
11:57:54 "Config": null,
11:57:54 "Path": "/var/lib/containers/storage/overlay-containers/e7ba936621c5789fcc982439352f2dcf5e3e988b265c4d5866dc4a6de4ccdf36/userdata/ctr.log",
11:57:54 "Tag": "",
11:57:54 "Size": "0B"
11:57:54 },
11:57:54 "NetworkMode": "host",
11:57:54 "PortBindings": {},
Beta Was this translation helpful? Give feedback.
All reactions