Skip to content

Docker

What is Docker

  • Docker is a tool used to create, run, and manage applications in containers
  • It helps to run applications in isolated environments

Why Docker

  • works on any system
  • lightweight compared to virtual machines
  • fast deployment
  • easy to scale

Docker vs Virtual Machine

  • Docker:
  • uses containers
  • lightweight
  • shares host OS

  • Virtual Machine:

  • uses full OS
  • heavy
  • slower

simple:
Docker = lightweight container
VM = full system


Container

  • container is a running instance of an image
  • it contains everything needed to run the application

Image

  • image is a blueprint of a container
  • used to create containers