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
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
Install docker desktop
Docker run -it hello-world
Thats all now hello world will be printed and your docker is succesfully running
NOTE: Docker has the following:
Docker file
Docker Image
Container
Docker Archtecture:
Docker Cli
Docker Daemon
Container d
shim
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