Getting Started with Docker

Getting Started with Docker

·

2 min read

Day 6 : Getting started with docker, before docker if we want to deploy an application on the server there can be only one application for one server.

If we want to host multiple applications we need multiple servers but that is not feasible and highly expensive.

So for that reason we come up with Docker, basically docker is an application or tool that help us to build, deploy , and ship applications very easily with the help of containers.

Basically containers are like boxes where we put all the necessary dependencies of the applications needed so that it could be used by other users who dont need to manual install all the dependencies if other users want to use your application

3 Methods to Run Docker in Docker Containers | Packagecloud Blog

Basically it reduces the workload of manually setting up each time other users want to work on your project.

no more to say that “It works on my machine but why not yours”

Docker installation

  1. Install docker desktop

  2. Docker run -it hello-world

  3. Thats all now hello world will be printed and your docker is succesfully running

NOTE: Docker has the following:

  1. Docker file

  2. Docker Image

  3. Container

DOCKER: Dockerfile Components - Knoldus Blogs Docker

Docker Archtecture:

Docker Architecture in Detail - Whizlabs Blog

  1. Docker Cli

  2. Docker Daemon

  3. Container d

  4. shim

  5. runc

The overall Docker Architecture is called the Docker Engine

How to Create a Docker Image?

Syntax:

FROM UBUNTU

MAINTAINER NAME <GMAILID>

RUN APT-GET UPDATE

CMD "echo","Hello-world"

NOTE: Every Image has a base image