Docker Day 1

Prateek Mudgal
2 min readFeb 16, 2024

--

Docker is a product that works on the concept of containerization.

Docker is a software platform that allows you to build, test, and deploy applications quickly. Docker packages software into standardized units called containers that have everything the software needs to run including libraries, system tools, code, and runtime.

Case study on Hotstar

Hotstar created the world record on the ICC world cup 2019 IND vs NZ match of having 25.3 million concurrent users

For launching the Operating system Hotstar used containerization ,For launching the server we need physical hardware and we need to install the operating system on it and deploy the application it is also called tech stack. Increasing the servers is also called scaling.

Before 2018 ,Hotstar was using Ec2 instance to launch an operating system If a surge of requests comes up Ec2 instance will not help because it requires some time to launch the operating system.

If we want to launch the operating system in 1 second then we can use Docker which works on the containerization concept. Docker is software, to run it we need the operating system. Mostly Linux operating system is used.

Installing Docker

Starting Docker services ,Docker program or service is also known as docker-engine.

Check weather docker is started or not by systemctl status docker.

If not then do systemctl start docker. {for starting a docker engine}

If we launch any OS on top of the cloud it is called an instance similarly if we launch any OS on top of Virtualization it is called Host/VM and on top of containerization if we launch any OS it is called Container .

docker ps command is used to seethe running containers.

Minimum requirement to launch the Operating system we need an image Without an OS image we can not install or launch the operating system Registry contains the container image. The famous public registry is DOCKER HUB.

docker images command is used to display all the docker images.

docker pull (image name ) command is used to pull or download the image.

Launching the container Command

  • docker run -t -i image name
  • -i means interactive
  • -t for a terminal

From coming out the container Ctrl + D

docker ps -a to see alkl the containers.

docker stop ( Container id) TO STOP CONTAINER FROM THE BASE SYSTEM.

--

--

Prateek Mudgal
Prateek Mudgal

Written by Prateek Mudgal

Passionate technologist specializing in Cloud & DevOps. Creating robust cloud solutions, automating processes. LinkedIn : www.linkedin.com/in/prateek-mudgal

No responses yet