Running Oracle XE in a Docker Container on MacOS
This post shows how to build and start Oracle XE on MacOS using the Docker image provided by https://github.com/wnameless/docker-oracle-xe-11g.
Step 1: Start Docker
Start formerly installed default
Docker instance using docker-machine
:
Check if the Docker instance is running:
Set enviromnental parameters to be able to commumicate with the Docker instance:
Step 2: Pull or build Docker image
Build the Docker image on your own:
Check the image:
Or just pull the image from the repository (lazy way):
Step 3: Run
Run the container with 22 and 1521 ports opened:
Step 4: Test
Connect to database with DB client, e.g. SQLDeveloper, using default settings:
Using docker-machine
on MacOS, localhost
does not work. Use the <IP> adress given by
following command instead:
Connect with SSH to the container (password: admin), using the same <IP> adress as above: