Saturday 24 February 2024

A Guide to Installing Oracle HR Schema on an Existing Docker Container

 Hi Reader,

Today I want to share my learning on how to install Oracle HR schema on a existing docker container.


Step 1: Download the verified schema from GitHub.
            Hyperlink: GitHub Link
                            Oracle Docs

Step 2: Unzip the file and copy the files to the docker container.

            the copy command for docker is docker cp srcPath                                            <containerId>:targetPath

docker cp db-sample-schemas-23.2 b1c7120d77b5:/home/oracle/


Step 3: enter the docker container using docker exec -it <containerId> bash 
            and check & navigate to the path.


Step 4: login to sql using sqlplus / as sysdba

Step 5: set container to your pluggable database using  
            alter session set container = custompdb;


Step 6: Install HR schema using @hr_install.sql









Tuesday 6 February 2024

Docker Local Registry: Learning, Setup, and Pushing Repositories

Hi All,

Today I'm sharing my learning on docker local registry and pushing the repo to the local registry.

Pull the registry from using 

docker run -d -p 5000:5000 registry:2

Note: We need to use the -d switch; otherwise, the container will run in attached mode, and all of the verbosity will start printing on the console.

Let's do a image tag.


docker tag <local-image-name> localhost:5000/<repo-name:tag> ex: * before tagging


docker tag student-service-student localhost:5000/student-service:1.0

* push the code to docker registry.

docker push localhost:5000/student-service:1.0



Now check the created repo in docker registry URL.





Thank You ❤









A Guide to Installing Oracle HR Schema on an Existing Docker Container

  Hi Reader, Today I want to share my learning on how to install Oracle HR schema on a existing docker container. Step 1: Download the verif...