Skip to content

Instantly share code, notes, and snippets.

@lucijafrkovic
Last active June 8, 2016 07:26
Show Gist options
  • Save lucijafrkovic/4544b97ec7e3f0994638706072e6c1d3 to your computer and use it in GitHub Desktop.
Save lucijafrkovic/4544b97ec7e3f0994638706072e6c1d3 to your computer and use it in GitHub Desktop.
Docker for Oracle
-- run oracle12c from image
docker run --privileged=true -d -p 32770:1521 --name orcl -i oracle-12c:rc_V_9_6_0
# privileged = true
-- gives extended privileges to the container
# -d
-- detach, Run container in background and print container ID
# -p outside:inside
--publish port
# --name
-- assigns a name to the container
# -i image:tag_name
-- starts image with tag_name
-- start orcl container
docker start orcl
-- stop orcl container
docker stop orcl
-- remove docker container
docker rm orcl
-- remove docker image
docker rmi oracle-12c:rc_V_9_6_0
-- commit docker image from container
docker commit container_name repository:tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment