Dockerfile instructions CMD and ENTRYPOINT These instructions will be executed when we are staring the container using the image If neither of them are specified, then base images CMD or ENTRYPOINT wll be used. In the following case, then docker will be excute NGINX CMD or Entrypoint FROM nginx RUN touch 1.txt Your container will… Continue reading DevOps Classroom notes 21/May/2026
DevOps Classroom notes 20/May/2026
Shell form vs Exec FORM When we use Shell form , internally it runs with /bin/sh -c <command> RUN apt update => /bin/sh -c apt update RUN python test.py => /bin/sh -c "python test.py" When we use exec form it directly starts your executable CMD ["python", "test.py"] -> python test.py If we want dynamic values… Continue reading DevOps Classroom notes 20/May/2026
DevOps Classroom notes 19/May/2026
RUN Run instruction will run the command in the container which is used to build image. RUN instruction will execute any linux command Refer Here for official docs In Docker file when we pass RAW commands to instructions we have two forms shell form: you pass raw command bash apt update exec form: you convert… Continue reading DevOps Classroom notes 19/May/2026
Linux Classroom notes 18/may/2026
Linux Classroom notes 19/may/2026
Linux Classroom notes 17/may/2026
MultiCloud Classroom notes 16/May/2026
DevOps Classroom notes 14/May/2026
Dockerfile Dockerfile has instructions in the form of INSTRUCTION <value> Lets look at the instruction reference In Docker hub we have 3 types of images official images are released by docker Verified publishers or sponsored oss Docker image naming convention for official images <application-name>:<version> tomcat:9 mysql:8.10 Docker image naming convention for Verified publishers or sponsored… Continue reading DevOps Classroom notes 14/May/2026
MultiCloud Classroom notes 14/May/2026
DevOps Classroom notes 13/May/2026
Containerizing the application Refer Here for the code written in python to create a REST API (Fast API) To run this application, we need python uv dependencies to be installed Code to be copied Application runs on port 18000 the command to start the application uvicorn main:app –host 0.0.0.0 –port 18000 or uv run main.py… Continue reading DevOps Classroom notes 13/May/2026
