Skip to content

Instantly share code, notes, and snippets.

@rossov
Last active November 7, 2020 02:09
Show Gist options
  • Save rossov/8584239ea70edf78bf5bb0331b7986a8 to your computer and use it in GitHub Desktop.
Save rossov/8584239ea70edf78bf5bb0331b7986a8 to your computer and use it in GitHub Desktop.
Running Docker image of Oracle 12c R1 on Mac OS X Sierra

Additional information https://hub.docker.com/r/sath89/oracle-12c/

Download Oracle 12c Release 1 from hub.docker.com

docker pull sath89/oracle-12c

Create new container (it takes time).

# Create Oracle 12c1 container
export DN=ora12c1
mkdir -p $HOME/Docker/oracle/$DN/data
docker run --name $DN -d -p 8080:8080 -p 1521:1521 \
-v $HOME/Docker/oracle/$DN/data:/u01/app/oracle \
sath89/oracle-12c

You can monitor database creation using docker logs command.

# Monitor database creation (tail -f)
docker logs -f ora12c1

Extras

# Shutdown Oracle 12c1 container
docker stop ora12c1

# Startup Oracle 12c1 container
docker start ora12c1

# Connect to running Oracle 12c1 container as oracle
docker exec -it -u oracle ora12c1 bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment