Docker Swarm, Container Orchestration

Docker Swarm, Container Orchestration

Docker Swarm

What is docker swarm?

  1. Docker Swarm is a container orchestration tool for clustering and scheduling Docker containers.

  2. With Swarm, IT administrators and developers can establish and manage a cluster of Docker nodes as a single virtual system.

  3. Docker Swarm lets developers join multiple physical or virtual machines into a cluster.

What is the difference between docker and docker Swarm?

  • Docker is used to create, distribute and run isolated containers,

  • while Docker Swarm is used to manage and orchestrate a cluster of Docker containers

Is docker Swarm the same as Kubernetes?

  • The main difference between both platforms is that Docker Swarm is lightweight and more beginner-friendly, while Kubernetes is heavy and complex. Developers looking for a middle ground might want to consider a new platform, K3s

Is docker Swarm a load balancer?

  • The Docker Swarm mode allows an easy and fast load-balancing setup with minimal configuration.

Why is docker Swarm used?

  • It helps end-users in creating and deploying a cluster of Docker nodes.

What is benefit of docker Swarm?

  • Docker Swarm helps guarantee high service availability

What are the advantages of docker Swarm?

  • Docker is a common container platform used for building and deploying containerized applications.

  • It's easy to install and set up for a Docker environment.

  • Tools, services and software that run with Docker containers will also work well with Swarm.

  • It has its own Swarm API.

What are the features of Docker Swarm?

  • Cluster management integrated with Docker Engine. Use the Docker Engine CLI to create a swarm of Docker Engines where you can deploy application services.

  • Decentralized design.

  • Declarative service model.

  • Scaling.

  • Desired state reconciliation.

  • Multi-host networking.

  • Service discovery.

  • Load balancing.

Setup swarm

docker swarm init --advertise-addr 145.156.1.45

Docker Service

docker run my-web-server
docker service create --replicas=3 --network frontend my-web-server
docker service create --replicas=3 -p 8080:80 my-web-server
docker service create --replicas=3 my-web-server

Container Orchestration

Container orchestration automatically provisions, deploys, scales, and manages containerized applications without worrying about the underlying infrastructure

Why Orchestrate?

The Docker container orchestration tool, also known as Docker Swarm, can package and run applications as containers, find existing container images from others, and deploy a container on a laptop, server or cloud (public cloud or private)

docker run nodejs

Container Orchestration

docker service create --replicas=100 nodejs

That's great if you have make till here you have covered basic of docker swarm, container orchestration.

If you liked what you read, do follow and any feedback for further improvement will be highly appreciated!

Thank you and Happy Learning!👏