Docker Community Forums

Share and learn in the Docker community.

Access Container running in a Hyper-V CentOS VM from a Windows machine

Hello,
Fur testing purposes, I created the following on my Windows 10 Professional PC runnning Hyper-V:

I can successfully access the database from that CentOS VM via the container’s IP address. However, I can’t access this Container from the Windows machine running the Hype-V CentOS VM. Is this possible at all?

I’ve started the container like so:
sudo docker run --name oracle19c
-p 1521:1521
-p 5500:5500
-e ORACLE_PWD=XXX
-e ORACLE_EDITION=enterprise
-v /opt/oracle/oradata/oracle19c:/opt/oracle/oradada
oracle/database:19.3.0-ee

then added the 1521 port to the firewall
sudo firewall-cmd --zone=public --add-port=1521/tcp --permanent
sudo firewall-cmd --reload

still can’t ping the IP of the container from the windows “client”