Last active
June 8, 2016 07:26
-
-
Save lucijafrkovic/4544b97ec7e3f0994638706072e6c1d3 to your computer and use it in GitHub Desktop.
Docker for Oracle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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