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