Docker-CODE | Dockerfile and scripts to generate CODE Docker image | Continuous Deployment library
kandi X-RAY | Docker-CODE Summary
kandi X-RAY | Docker-CODE Summary
Dockerfile and scripts to generate CODE Docker image
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Docker-CODE
Docker-CODE Key Features
Docker-CODE Examples and Code Snippets
Community Discussions
Trending Discussions on Docker-CODE
QUESTION
I have create an image for the oracle 19c. I have started my container with below command.
docker run --name oracledb -d -p 1527:1521 -p 5700:5500 -e ORACLE_PWD=password1 -e ORACLE_CHARACTERSET=AL32UTF8 -v /d/docker-code/oracle-data oracle/database:19.3.0-ee
After creation of container, I am able to login in the container. I am able to connect with the below command inside the container.
sqlplus system/password1@172.17.0.2:1527/ORCLCDB
Outside of the container, from the cmd, I can not connect to that oracle instance.
Note: I have already installed oracle on the windows machine at port 1521 which is default port.
listener.ora
...ANSWER
Answered 2021-May-31 at 08:33Make sure all container network interfaces are listening for database traffic, hence 0.0.0.0
. Do not hardcode a docker bridge network address (172..) because this address will be assigned at container startup. Just stick with the default port 1521 local to the container. This port - 1521 - is local to the container and not exposed to the host OS. You publish this port to the host OS where you decide which port to use, hence -p 1522:1521
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Docker-CODE
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page