# Day 16- Docker for DevOps Engineer

Hello Readers 👩‍💻👩‍💻

It's my #day16 of #90daysofDevopsChallenge

Topics for #day16

✅Docker

✅Archiecture of Docker

✅Components of Docker

✅Installation of Docker and Important Commands

✅Task for Day 16

### **Docker**

Docker is an open-source centralized platform to create deploy and run applications. Docker uses the container on the host OS to run applications. It allows using the same Linux kernel on the System rather than creating a virtual OS. It's written in the GO language.

### **Architecture of Docker**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682944476775/7f834370-7913-4c51-b5a2-93c3a0b40b27.png align="center")

### **Components of Docker**

**Docker Daemon-**

Docker Daemon runs on the Host OS. It's responsible for running and managing the docker service.

Docker Client

Docker users can interact with docker Daemon through a client. It uses commands and Rest APIs to communicate with the docker daemon.

Docker Host

It provides an environment to run and execute applications. It contains the docker daemon, images, containers, network and storage.

Docker Hub/Registry

It manages and stores the docker images.

Docker Images

A docker image is a file that contains all the necessary files, dependencies, and configuration settings to create a containerized application.

Docker Container

A Docker container is a lightweight, standalone, and executable package that contains everything needed to run a piece of software, including the application code, runtime, system tools, libraries, and settings.

### Installation of Docker and Basic Commands

Installing docker in Ubuntu

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682948567200/daf4f82a-171e-420d-9922-6fcc1b443a7a.png align="center")

To download images from docker-hub to local machine

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682948788466/d05a0ff8-ac5a-4809-b27b-aba33b34cb3f.png align="center")

To view the Images present in the local machine

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682953617179/4800d3c9-23c6-4bd9-98f7-1e613e3ec1e5.png align="center")

To check whether the service is started or stopped

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682953811390/9d01db58-4163-4ba0-b769-76a519798cbb.png align="center")

To Stop the Service

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682953960278/116ddef2-94db-44db-be0c-559c4fda7adb.png align="center")

To start the Service

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682954036256/9c59ff2f-8662-485f-b0ba-3e225adc638f.png align="center")

Tasks

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682954565540/74383ccc-5f05-44e8-a265-bad5aa88744c.png align="center")

Docker ps

This command will list all the running containers

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682954752162/633823ad-6995-4774-a3aa-d14f490b16de.png align="center")

Docker run

The `docker run` command to start a new container and interact with it through the command line.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682955058708/24faa8f7-1fe4-4a1e-a992-5b9e2cf10086.png align="center")

Docker images

It will display all the available images

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682955230054/83d7bc4e-b95b-403c-8db3-d8d26344e29c.png align="center")

Docker inspect

The `docker inspect` command to view detailed information about a container or image.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682955372768/029d6e37-7bf2-43c4-b737-e83261400b89.png align="center")

Docker Stats

The `docker stats` command to view resource usage statistics for one or more containers.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682955837810/95b8bfa8-3965-489c-be93-abfb0dc869e3.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682955867623/408fd87b-5b2f-423d-837b-c4a451abcd82.png align="center")

Docker Save

The `docker save` command to save an image to a tar archive.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682956416733/b937eeea-d81f-455f-b121-9bb4cbe51d8f.png align="center")

Docker Load

The `docker load` command to load an image from a tar archive.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682956573853/6afc57f6-7c9b-469d-accd-a7efb629c8ca.png align="center")

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1682956972063/de630c8a-26ec-46e7-afdc-add14abcdb7a.png align="center")

I appreciate you taking the time to read my blog, and I hope you found it informative. If you found the content useful, please consider giving it a like, sharing it with others, and following me for more similar posts in the future. Thank you for your support!

Linkedin Profile-[https://www.linkedin.com/in/shreyakhangan/](https://www.linkedin.com/in/shreyakhangan/)
