DOCKER ARCHITECTURE NOTES

HYPERVISER-


             A program used to manage vm's on computer.




Disadvantges of vertual machine over container-
1. Cost 
2. Start up time is more
3. Requires more RAM and CPU
4. Consume lot of disc space
5. Portability 





Container Engine-unpacks the all files and hands them to the operating system kernal

note-container only operate on same operating system.like your container containes windows file then it only runs on windows operating system.

if operating system goes crashesh then all containers are goes down without saving the data.

Vertual machine and Containers are can be use on same machine

.

docker architecture




  • Docker Client: It is the primary interface for users to interact with Docker. It sends commands to the Docker daemon and manages Docker objects such as images, containers, networks, and volumes.

  • Docker Host: It is responsible for running Docker containers. It can be a physical or virtual machine that runs the Docker daemon.

  • Network: Docker provides networking capabilities to connect containers together and to the outside world. It allows containers to communicate with each other using private networks or expose ports to the host machine.

  • Storage: Docker provides various storage options for containers. It allows you to manage persistent data by using volumes or mount points within containers.

  • Docker Registry/Hub: It is a repository for Docker images. You can push your own images to a registry or pull images from it to run on your Docker host.

docker installation on machine-Install Docker Desktop on Linux | Docker Docs

-Docker comands- 

  run                Create and run a new container from an image
  exec              Execute a command in a running container
  ps                  List containers
  build             Build an image from a Dockerfile
  pull               Download an image from a registry
  push             Upload an image to a registry
  images         List images
  login            Log in to a registry
  logout          Log out from a registry
  search          Search Docker Hub for images
  version        Show the Docker version information
  info              Display system-wide informationdocker 
  builder         Manage builds
  container     Manage containers
  context        Manage contexts
  image          Manage images
  manifest      Manage Docker image manifests and manifest lists
  network      Manage networks
  plugin         Manage plugins
  system        Manage Docker
  trust            Manage trust on Docker images
  volume       Manage volumes
  swarm        Manage Swarm
doker search docker search repository 
dockercreate --help
docker create --name=ubuntu -it ubuntu bash 
docker create -=name=ubuntu -t ubuntu bash -t for tty docker container ls docker ps -a 
docker pu
docker start myubuntu docker logs
docker rm command and iamge name -f -v -l docker attach container myubuntu . . . . docker run 1.create 2.start 3.attach






Docker and Kubernetes are two popular containerization technologies that can be used together to create a powerful DevOps environment. 

Docker containers can be deployed on a Kubernetes cluster, which is a group of nodes that run containerized applications. 

 Kubernetes can manage scaling requirements, availability, failover, deployment patterns, and more. Kubernetes’ capabilities include:

  • Service and process definition
  • Service discovery and load balancing
  • Storage orchestration
  • Container-level resource management
  • Automated deployment and rollback
  • Container health management

 Docker Desktop allows you to leverage certified images and templates and your choice of languages and tools.

I hope this helps to all my friends!!

Comments

Popular Posts