Docker
Introduction

Docker

Main

Docker is best when you want to install mysql or other things not in computer but only for a project

docker registry

is just cloud image online and you able to get in another pc


docker why now

Isolation

Env speed


docker engine is used to run image in server


.dockerignore | to ignore files to push

docker-compose.yml | to run multiple images

dockerfile | to run present folder project


VM vs Container

vm :

size : 500 MB

hypervisor problem resource allocation

container

size: 40-60 mb

Runtime Engine

-ubuntu only 47 mb os

why use docker

bcs it create image (same os, library version all that ) of the project then you able to upload in docker hub and easily run in other computer

Docker Image :

Container :