Optional: Setup docker network: docker network create oracle_network. This is useful if you want other containers to connect to your database (ORDS for example). You can change oracle_network for any name you want, however this name will be used in all the code snippets below.
Optional: Create a folder mkdir ~/docker/oracle-xe which will store your Oracle XE data to be preserved after the container is destroyed.
docker run -d
-p 32118:1521
-p 35518:5500
--name=oracle-xe
--volume ~/docker/oracle-xe:/opt/oracle/oradata
oracle-xe
docker logs oracle-xe
Run parameters:
Name Required Description -p 1521 Required TNS Listener. 32118:1521 maps 32118 on your laptop to 1521 on the container. -p 5500 Optional Enterprise Manager (EM) Express. 35518:5500 maps 35518 to your laptop to 5500 on the container. You can then access EM via https://localhost:35518/em --name Optional Name of container. Optional but recommended --volume /opt/oracle/oradata Optional (recommended) If provided, data files will be stored here. If the container is destroyed can easily rebuild container using the data files. --network Optional If other containers need to connect to this one (ex: ORDS) then they should all be on the same docker network. oracle-xe:18c Required This is the name:tag of the docker image that was built in the previous step
Content type
Image
Digest
Size
5.3 GB
Last updated
about 7 years ago
docker pull mescudero74/oracle-xe