Introduction to Docker
Snehal Rajmane, DevOps Engineer

Introduction to Docker

What is Docker?

Docker is a container orchestration tool, which is used for developing, shipping, and running applications as a lightweight, portable, self-sufficient container. In addition, Docker containers are easy to deploy. It is used to automate the deployment of the application in lightweight containers so the application can work efficiently in different environments.

Why Docker?

No alt text provided for this image

Differences between docker containers and virtual machines- the virtual machine has its's guest operating system. On the other hand, Docker containers share the host operating system, and that is why they are lightweight. Docker containers are easily portable as they have share host os while on the other hand, virtual machines have separate os. As compare to docker container virtual machines are difficult to port. Virtual machines can also be slow to boot.

Components of Docker:

  • Docker client and daemon - Docker client is docker CLI, which sends commands to the docker daemon. Docker daemon listens to Docker API requests to manage docker objects like containers and images.
  • Docker container - Docker container is a standalone, executable software package that allows developers to isolate their app from its environment. A container is defined by its image as well as any configuration options you provide to it when you create or start it. Using docker CLI you can create, run, remove, attach, stop the docker container. The container can connect one or more networks.
  • Docker Images - Docker image is portable template with instructions to create docker containers. You can create your own docker image using Dockerfile, from your docker container also, you can use created docker images by others and published on the registry. A Docker image is made up of multiple layers. Dockerfile includes set of instructions, each instruction creates a different layer.
  • Docker registry - A Docker registry used for hosting and distributing Docker images. Docker Hub is a public registry, docker user can pull or push docker images from the configured registry. There are other choices such as Google, Azure, or AWS Container Registry. Also, they can store images in private or public repositories. A Docker Repository is a collection of related images with the same name, that have different tags.
No alt text provided for this image

Docker Installation:

Please refer the official site for Docker installation: https://docs.docker.com/get-docker/

Stay tuned for the upcoming blog on basic and important commands in docker.

PS: Please don't copy-paste this article. If you find it useful please feel free to share it, and yes don't forget to give credits.


Gajanan Raut

Senior System Analyst @ Xoriant | DevSecOps | SCM Tools | CI/CD | Build & Release | Jira SME | Docker SME | AWS | Cloud Migrations | Python | C++ | Linux

4 年

Good one Snehal...keep it up!!!

Ajay S

Cloud Data Architect|GCP|AWS|Azure

4 年

Perfect info for beginners!

Ravindra Patil

Senior System Administrator at Atraco Group, ITILF Certified |Office 365 Administrator |MCP|MCSA

4 年

Very Useful info.. ??

Durgadas Kamath

?? Principal Architect | AWS & IBM Cloud | Microservices | Serverless & DevOps Expert | Scalable Architecture | Speaker & Tech Evangelist

4 年

Great start Snehal !!

要查看或添加评论,请登录

Snehal Rajmane的更多文章

  • Docker Compose II

    Docker Compose II

    I. Define the Project Create a directory for your project, in this directory, we will create project-specific…

  • Docker Compose I

    Docker Compose I

    Docker Compose is a tool for running multi-container applications. All containers work together.

  • Advanced Dockerfiles: Multistage Build

    Advanced Dockerfiles: Multistage Build

    Docker images usually built with dockerfile with instructions, dependencies, and build steps. Dockerfile instructions…

    2 条评论
  • Dockerfile

    Dockerfile

    Overview: Dockerfile is a document with a set of commands that you need to build docker image. The creation of Docker…

    4 条评论
  • Part II: Docker Commands

    Part II: Docker Commands

    1. Copy files/folders: Yes, we can copy files/folders from local machine to container and vice versa.

    3 条评论

社区洞察

其他会员也浏览了