Skip to content
Oracle Database Standard Edition Docker image with puppet 3.7 on CentOS 6
Puppet Shell Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Oracle Database ( 12c ) Standard Edition Docker image

it will download a minimal CentOS 7 image, Puppet and all its dependencies

The Docker image will be big, and off course this is not supported by Oracle and like always check your license to use this software

Configures Puppet and use librarian-puppet to download all the modules from the Puppet Forge


  • Oracle Database Standard Edition
  • Service name =
  • username sys or system
  • All passwords = Welcome01
  • Demo schemas

Optional, you can add your own DB things, just change the puppet site.pp manifest

  • Add your own Tablespaces
  • Add Roles
  • User with grants
  • Change database init parameters
  • execute some SQL


Download the following software from Oracle and Agree to the license

  • file 1 & 2 ( & )

Add them to this docker src/main/docker/db directory

Build image (~ 12GB)

  • cd src/main/docker/wls
  • docker build -t oracle/database12102 .

or with maven

  • mvn package, build image
  • mvn verify, local bring up, test and destroy
  • mvn install, bring up

Maybe after the build you should compress it first, see the compress section for more info

Start container

default, will start the listener & database server

  • docker run -i -t -p 1521:1521 oracle/database12102:latest

with bash

docker run -i -t -p 1521:1521 oracle/database12102:latest /bin/bash

  • /

Compress image (now ~7.6GB)

  • ID=$(docker run -d oracle/database12102:latest /bin/bash)
  • docker export $ID > database12102.tar
  • cat database12102.tar | docker import - database12102
  • docker run -i -t -p 1521:1521 database12102:latest /bin/bash
  • /

Boot2docker, MAC OSX

Probably you will run out of space

VirtualBox forward rules

  • VBoxManage controlvm boot2docker-vm natpf1 "database,tcp,,1521,,1521"

Check the ipaddress

  • boot2docker ip



  • docker-machine create --driver vmwarefusion --vmwarefusion-disk-size 40960 --vmwarefusion-memory-size 2048 vm
  • docker-machine env vm


  • docker-machine -s /Volumes/2big/docker create --driver virtualbox --virtualbox-disk-size 40960 --virtualbox-memory 2048 vm
  • docker-machine -s /Volumes/2big/docker env vm
You can’t perform that action at this time.