Hi folks, I'm looking to use Oracle DB to do some basic app dev and testing on my Windows 10 laptop. I've got Oracle installed and running following the instructions here:
https://hub.docker.com/ Oracle Database Server Docker Image Documentation
My problem is that I can't seem to get the volume to work correctly. When I stop/start my container the database is destroyed. I know I need to set up a volume and use that volume when doing "docker run".
I have tried various verions of the docker run syntax and can't figure it out.
docker run -d -it -p 1521:1521 --name oracle -v C:\SAM\Docker\oracledockervolume\:/opt/oracle/oradata store/oracle/database-enterprise:12.2.0.1
Then I tried using "docker volume " to create a volume and then reference the created volume instead of something like "c:\..."
docker run -d -it -p 1521:1521 --name oracle -v sam_oracle:/opt/oracle/oradata store/oracle/database-enterprise:12.2.0.1
docker run -d -it -p 1521:1521 --name oracle -v sam_oracle:/ORCL store/oracle/database-enterprise:12.2.0.1
After running the container, connecting, creating my test table and data, when I do docker stop, docker start, my table is gone.
Does anyone know what I am doing wrong?
Thanks!