DevOps(Day-16) :Introducing Docker

DevOps(Day-16) :Introducing Docker

SPEED1X

TABLE OF CONTENTS

First of all, let's put our focus on what is a container.

Containers

These are isolated environments containing their processes, networks and mounts.

Docker — Beginner's Guide — Part 1: Images & Containers | by Sebastian |  CodingTheSmartWay | Medium

Docker

  1. Docker is used to containerising applications that can run anywhere, anytime and as many times as you want in any environment.

  2. Dockers can run on any flavour of OS on it as long as they have the same kernel.

    What is DevOps and it's Processes? Ultimate Guide

    Docker architecture

    Docker architecture. Source: van der Mersch 2016.

    Docker Client

    The Docker client uses commands to communicate with the Docker Daemon (Server). When a client runs any docker command on the docker client terminal, the client terminal sends these docker commands to the Docker daemon.

    Docker Client uses Command Line Interface (CLI) to run the following commands

    • docker pull

    • docker build

    • docker run

      Docker Host

      Docker Host is used to providing an environment to execute and run applications. It contains the docker daemon, images, containers, networks, and storage.

      Docker Registry

      Docker Registry manages and stores the Docker images.

      There are two types of registries in Docker -

      Pubic Registry - Public Registry is also called a Docker hub.

      Private Registry - It is used to share images within the enterprise.

Tasks

  • Use the docker run command to start a new container and interact with it through the command line. [Hint: docker run hello-world]

  • Use the docker inspect command to view detailed information about a container or image.

  • Use the docker port command to list the port mappings for a container.

  • Use the docker stats command to view resource usage statistics for one or more containers.

  • Use the docker top command to view the processes running inside a container.

  • Use the docker save command to save an image to a tar archive.

  • Use the docker load command to load an image from a tar archive.

Thank you for reading my article.

Have a nice day.

WRITTEN BY Biswaraj Sahoo --AWS Community Builder | DevOps Engineer | Docker | Linux | Jenkins | AWS | Git | Terraform | Docker | kubernetes

Empowering communities via open source and education. Connect with me over linktree: linktr.ee/biswaraj333