Installing Docker on Mac to run SQL Developer
For now, this is all you need to know lol — it was a struggle... T_T
#step1 First steps
1) Download
https://www.docker.com/get-started
2) Sign up, then launch. Log in
#step2 Setup order
1) Check the version
docker --version
2) Log in(for the ID, enter only the part before the @, and the password won't show as you type — that's normal)
docker login
3) Docker update(after installation, an update related to Oracle integration)
docker pull wnameless/oracle-xe-11g
4) Option-1 : Create a basic container (caution — if you stop and restart Docker, all the database work you did will be reset)
docker run -d -p 59160:22 -p 59161:1521 wnameless/oracle-xe-11g
4) Option-2 : Create a volume (to keep local data) and along with it create a new container list
docker run -d -p 59160:22 -p 59161:1521 -e ORACLE_ALLOW_REMOTE=true --mount source=oracle_vol,target=/u01/app/oracle wnameless/oracle-xe-11g
* 59160:22 -p 59161:1521 may be different on each PC ><
#step3 Other useful commands for reference
* Check the list of images you have
docker image ls --all
* Stop a running container
docker exec -it oracle11g sqlplus
* Check the list of containers you have
docker ps
* Delete containers you have
docker rm $(docker ps -a -q)
* Check the list of volumes you have
docker volume ls
* Detailed info
docker volume inspect volume_name (you can get the name by running the command above)
* Remove
docker volume rm volume_name
# References
* Things that directly helped me solve the problem
http://inor.tistory.com/49
https://github.com/wnameless/docker-oracle-xe-11g/issues/64
https://nicewoong.github.io/development/2017/10/09/basic-usage-for-docker/
* General dev guides on Docker
http://wiki.rockplace.co.kr/pages/viewpage.action?pageId=3868698
http://tech.cloudz-labs.io/posts/docker/volume/
https://www.joinc.co.kr/w/man/12/docker/InfrastructureForDocker/storage
