You are on page 1of 13

Blockchain

Fundamentals

Docker
Why we need docker?

• Compatibility/ Dependency Issues


• Long Setup Time
• Different Developer/ Test/ Prod Environment
Docker

Docker is an open source platform that helps an user to package an application and
its dependencies into a docker container for the development and deployment of
software.

Docker container is a portable executable package which include applications and


their dependencies.
Docker Container
Docker container is a portable executable software package which include
applications and their dependencies.

With Docker container, applications can work efficiently in different computer


environments.
Blockchain
Fundamentals
Blockchain
Fundamentals
Blockchain
Fundamentals
Architecture of Docker
• Docker client is a service which uses the API to send commands to docker
through CLI commands.

• Docker daemon checks the client request and communicates with the docker
components in order to perform a service.

• A Docker Image is a file of instructions which is used to create containers.

• Docker registry is a service used for hosting and distributing docker images
among users.
How to create/deploy a Docker
Container?
• Create a new folder, called ‘my-first-docker-image’ for example.
• Create a file in this folder, called ‘Dockerfile’ (exact naming, no extension).
• Docker file creates a Docker Image using the build command.
• A docker image contains of all the project’s code.
• With docker Image, an user can run the code in order to create Docker containers.
• Once the docker Image is created it can be stored in the docker registry - docker Hub
or in a Repository using Docker push command.
• There are multiple docker images available in the registry and all can be retrieved
through the docker pull command.
.
How to create/deploy a Docker
Container?
• In docker a Docker Image is build using Build command and that image is
stored into the registry using push command.
Docker push docker-image-name

• When you run pull command Docker Image is retrieved from the registry.
Docker pull docker-image-name
• Finally, The Docker daemon creates a single container from that Docker image
through the run command, which runs the executable.
Docker run docker-image-name
• The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
Blockchain
Fundamentals

https://www.katacoda.com/courses/docker
Blockchain
Fundamentals

THANK YOU
Blockchain
Fundamentals

You might also like