Docker is designed to run on Linux kernel version 3.8 and higher.
You can deploy Docker containers on any physical and virtual machines and on the cloud.
Docker containers are lightweight, and easily scalable.
It becomes easy for developers to work smoothly and build applications.
As Dockers are platform independent, they can be deployed on windows/Linux/Mac OS.
It is a key component in CMS and used for building docker images (12c in our case, need to download from docker hub) and create docker containers.
NOTE:Dockers are alternative to Virtual machines.
A virtual machine relies on the system’s physical hardware to emulate the exact same environment on which you install your applications. We install hypervisor on Operating system and build different VMS to build application. Docker is a stand-alone piece of software that includes everything needed to run it.
Image Source : https://www.docker.com/resources/what-container
Docker’s architecture is also client-server based and more complicated than VM.
Docker Client: Used to interact with your containers.
Docker Objects: Containers and images. As mentioned earlier, containers are the placeholders for your software, and can be read and written to. Container images are read-only and used for creating new containers.
Docker Daemon: A background process responsible for receiving commands and passing them to the containers via command line.
Docker Registry: It is nothing but Docker Hub where it stores container images.
It doesn’t require hardware hypervisor. This means docker containers are much smaller and require less resources. Dockers reboot much faster in comparison to VMS.
You need to restart the system to complete installation.
Set up docker hub account to download docker image files that support 126.96.36.199 database.
Extract Oracle image
Connect using command prompt.
C:\Users\****>docker run -d -p 80:80 docker/getting-started
Unable to find image 'docker/getting-started:latest' locally
latest: Pulling from docker/getting-started
540db60ca938: Pull complete
0ae30075c5da: Pull complete
Status: Downloaded newer image for docker/getting-started:latest
Login with your Docker ID to push and pull images from the Docker Hub. If you don’t have a Docker ID, click on the following link to create one: https://hub.docker.com .
Copy and paste the command on command prompt
Full database - doc2ker pull store/oracle/database-enterprise:188.8.131.52
Slim database - docker pull store/oracle/database-enterprise:184.108.40.206-slim
C:\Users\****>docker pull store/oracle/database-enterprise:220.127.116.11-slim
18.104.22.168-slim: Pulling from store/oracle/database-enterprise
Status: Downloaded newer image for store/oracle/
C:\Users\***>docker run -d -p 1521:1521 --name oracle store/oracle
C:\Users\***>docker start oracle Oracle
CONTAINER ID IMAGE
"/bin/sh -c '/bin/ba…" 58 seconds ago Up 57 seconds (health:
starting) 0.0.0.0:1521->1521/tcp, :::1521->1521/tcp, 5500/tcp
769c5cbc827a docker/getting-started "/
docker-entrypoint.…" 17 minutes ago Up 17
minutes 0.0.0.0:80->80/tcp, :::80->80/
We can see the same on docker desktop
C:\Users\****>docker exec -it oracle bash -c "source /home/oracle/.
bashrc; sqlplus /nolog"
SQL*Plus: Release 22.214.171.124.0 Production on Wed Aug 25 10:49:06 2021
Copyright (c) 1982, 2016, Oracle. All rights reserved.
SQL> select name from v$database;
SP2-0640: Not connected
SQL> connect sys as sysdba
Enter password: Oradoc_db1 >> Default password.
SQL> select name from v$database;
SQL> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
2 PDB$SEED READ ONLY NO
3 ORCLPDB1 READ WRITE NO
A Container’s goal is to isolate an application and to remove the need of physical hardware by allowing for more efficient use of computing resources, both in terms of energy consumption and cost effectiveness.
Use the Feedback tab to make any comments or ask questions. You can also start a conversation with us.