No video

Docker Swarm| Step by Step | What is Docker Swarm | How to create Docker Swarm

Free Tutorials - automationstep...
Hi, I am Raghav & Today we will learn :
1. What is Docker Swarm
2. Why to use it
3. How to create and manage Docker Swarm
4. Create service on docker swarm
5. Scaling services up and down
6. Features/Helpful Tips
A swarm is a group of machines that are running Docker and joined into a cluster
Docker Swarm is a tool for Container Orchestration
Let’s take an example
You have 100 containers
You need to do
- Health check on every container
- Ensure all containers are up on every system
- Scaling the containers up or down depending on the load
- Adding updates/changes to all the containers
Orchestration - managing and controlling multiple docker containers as a single service
Tools available - Docker Swarm, Kubernetes, Apache Mesos
Pre-requisites
1. Docker 1.13 or higher
2. Docker Machine (pre installed for Docker for Windows and Docker for Mac)docs.docker.co...
docs.docker.co...
Step 1 : Create Docker machines (to act as nodes for Docker Swarm) Create one machine as manager and others as workers
docker-machine create --driver hyperv manager1 docker-machine create --driver virtualbox manager1
docker-machine:Error with pre-create check: “exit status 126”
stackoverflow....
brew cask install virtualbox;
Create one manager machine
and other worker machines
Step 2 : Check machine created successfully
docker-machine ls
docker-machine ip manager1
Step 3 : SSH (connect) to docker machine
docker-machine ssh manager1
Step 4 : Initialize Docker Swarm docker swarm init --advertise-addr MANAGER_IP
docker node ls
(this command will work only in swarm manager and not in worker)
Step 5 : Join workers in the swarm
Get command for joining as worker
In manager node run command
docker swarm join-token worker
This will give command to join swarm as worker
docker swarm join-token manager
This will give command to join swarm as manager
SSH into worker node (machine) and run command to join swarm as worker
In Manager Run command - docker node ls to verify worker is registered and is ready
Do this for all worker machines
Step 6 : On manager run standard docker commands
docker info
check the swarm section
no of manager, nodes etc
Now check docker swarm command options
docker swarm
Step 7 : Run containers on Docker Swarm
docker service create --replicas 3 -p 80:80 --name serviceName nginx
Check the status:
docker service ls
docker service ps serviceName
Check the service running on all nodes
Check on the browser by giving ip for all nodes
Step 8 : Scale service up and down
On manager node
docker service scale serviceName=2
Inspecting Nodes (this command can run only on manager node)
docker node inspect nodename
docker node inspect self
docker node inspect worker1
Step 9 : Shutdown node
docker node update --availability drain worker1
Step 10 : Update service
docker service update --image imagename:version web
docker service update --image nginx:1.14.0 serviceName
Step 11 : Remove service
docker service rm serviceName
docker swarm leave : to leave the swarm
docker-machine stop machineName : to stop the machine
docker-machine rm machineName : to remove the machine
REFERENCES:
docs.docker.co...
rominirani.com...
FAQs & Helpful Tips:
A swarm is a group of machines that are running Docker and joined into a cluster
A cluster is managed by swarm manager
The machines in a swarm can be physical or virtual. After joining a swarm, they are referred to as nodes
Swarm managers are the only machines in a swarm that can execute your commands, or authorise other machines to join the swarm as workers
Workers are just there to provide capacity and do not have the authority to tell any other machine what it can and cannot do
you can have a node join as a worker or as a manager. At any point in time, there is only one LEADER and the other manager nodes will be as backup in case the current LEADER opts out
#DockerSwarm #WhatIsDockerSwarm #DockerTutorials #DockerTraining #DevOpsTools #DevOpsTraining #DockerCommands #DockerForBeginners #DockerFreeTutorials #DockerforDevOps
DOCKER PLAYLIST
• Docker
KZread PLAYLIST
/ @raghavpal
KZread
/ automationstepbystep
Share your knowledge with everyone and,
Never Stop Learning
Raghav

Пікірлер: 697

  • @RaghavPal
    @RaghavPal5 жыл бұрын

    Free online courses - automationstepbystep.com/online-courses/

  • @manishjangra5859

    @manishjangra5859

    4 жыл бұрын

    I created a Windows Docker image using Dockerfile, how do I use that image, It's locally available on my machine.

  • @tahashokri77

    @tahashokri77

    2 жыл бұрын

    sir thanks for your courses i have a question : how can join a node from another location such as my manager be in one country and worker in another country? is it possible?

  • @keshavupadhyaya1253
    @keshavupadhyaya12534 жыл бұрын

    This is by far the best docker tutorial series on KZread!

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    So happy & humbled to see your message Keshav

  • @intrig4
    @intrig4Ай бұрын

    The best dockers tutorials I've ever see, thank you.

  • @RaghavPal

    @RaghavPal

    Ай бұрын

    Thanks and most welcome..

  • @aleenaaqeel2500
    @aleenaaqeel25007 ай бұрын

    This is hands down the most simplest and straight-forward break down of docker swarm. Thanks a lot for this amazing video

  • @RaghavPal

    @RaghavPal

    7 ай бұрын

    So happy and humbled. Thanks Aleena

  • @vivekveeramani87
    @vivekveeramani874 жыл бұрын

    Can't help thinking how could someone dislike a free tutorial as good as this. Thank you very much Raghav!

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Most welcome Vivek

  • @techsharthi1
    @techsharthi13 жыл бұрын

    Best Docker Swarm video Across KZread...... Thanks a lot....... Love from Bihar❤❤

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    Most welcome and humbled

  • @Adks007
    @Adks0075 жыл бұрын

    You are brilliant man!! Love from United States!

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    Thanks a lot Aman, Honored and humbled by your message

  • @abdulazeezatanda2371
    @abdulazeezatanda23712 жыл бұрын

    Oh God! This is the best docker tutorial I've watched so far. Thanks for making it all so meaningful

  • @RaghavPal

    @RaghavPal

    2 жыл бұрын

    Most welcome Abdul

  • @PavonDunbar
    @PavonDunbar2 жыл бұрын

    Amazing tutorials!! Appreciate you, Raghav! Thanks again!

  • @RaghavPal

    @RaghavPal

    2 жыл бұрын

    Most welcome Pavon

  • @engalibadouin5222
    @engalibadouin52223 жыл бұрын

    thanx, Raghav. you are fantastic and more organized.

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    Thanks

  • @RKful
    @RKful4 жыл бұрын

    I have gone thru all of your docker videos and also the GitLab ones. Thanks you so much for putting together such an amazing content, these are very well explained along with simple to understand follow along session. I started as the one who doesn't know anything about GitLab or Docker but now after completion I feel very comfortable with these technologies and gave confidence to pursue further in detail. Appreciate all the work you have put in.

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    You're very welcome Ravi. Can check all here - automationstepbystep.com/

  • @mrabbas9
    @mrabbas94 жыл бұрын

    Not just Swarm, now I also know what docker-machine is for. Thank you.

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    So happy to know this Abbas. Best wishes

  • @pradeepkumar-ol2mk
    @pradeepkumar-ol2mk4 жыл бұрын

    Thank u raghav sir...ure explaination was awesome

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Great to know this Pradeep

  • @parulchaudhary2415
    @parulchaudhary24155 жыл бұрын

    You are awesome Raghav. I love the way you explain things from scratch. Thanks much.

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    You're welcome Parul

  • @derrick3534
    @derrick35344 жыл бұрын

    Wow. You are king of breaking down complex topics. This was something I've been wanting to do on my host machine for testing container orchestration. I can't wait to try this.

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Happy to know it was useful Derrick

  • @irishmangiant
    @irishmangiant5 жыл бұрын

    Thanks Raghav - very clear and well organised tutorial. Thank you for putting this together.

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    You're welcome

  • @9543102234
    @95431022345 жыл бұрын

    Thank you Raghav.. Your Tutorials are very easy to understand and as simple as your explanation.. Great job..

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    You're welcome

  • @kandukurimallikarjunareddy7974
    @kandukurimallikarjunareddy7974 Жыл бұрын

    Nice video. What a clear and clean explanation. Thank you..! For the video..

  • @RaghavPal

    @RaghavPal

    Жыл бұрын

    Most welcome

  • @rosejune7701
    @rosejune77014 жыл бұрын

    it was super useful...i love love your teaching styles..thanks alot

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Most welcome Roselyne

  • @obbinenireddy4184
    @obbinenireddy41844 жыл бұрын

    Hi your way of explanation is too good sir... I have a request sir can you please start kubernetes series.

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Hi Obbineni, I have some videos here - automationstepbystep.com/

  • @Vijaykumar-nm1pp
    @Vijaykumar-nm1pp4 жыл бұрын

    Hi Raghav Your video are so helpful for beginner, thank you for posting the videos

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Most welcome Vijay

  • @manishgarg14343
    @manishgarg143434 жыл бұрын

    Very useful and easy to understand tutorial.

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Glad to hear that Manish

  • @manikantaundralla5509
    @manikantaundralla55094 жыл бұрын

    Really my first video to complete without forwarding, because the way indexing the topic is good...

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    So happy to know Manikanta

  • @sudarvendan
    @sudarvendan3 жыл бұрын

    Works Flawless, One of the best tutorial on Docker Swarm.

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    So happy to know this

  • @mojmon
    @mojmon5 жыл бұрын

    A nice tutorial which shows all the basics needed for scaling Thanks

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    Thanks for the message Mojtaba

  • @hareeshch
    @hareeshch4 жыл бұрын

    What a wonderful Teacher you are!

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Thank you Hareesh. Humbled :)

  • @zul.overflow
    @zul.overflow3 жыл бұрын

    yes dude it's very useful, indian guys always amaze me. thankyou very much

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    Happy to help

  • @zul.overflow

    @zul.overflow

    3 жыл бұрын

    @@RaghavPal hey dude, how to deploy with stack from local build?

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    I will plan a session, can take online help meanwhile

  • @markkeller6917
    @markkeller69174 жыл бұрын

    Great job with this Raghav

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Thanks Mark

  • @mayurkothari8761
    @mayurkothari87614 жыл бұрын

    This best demo of docker swarm

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    So happy and humbled to see this Mayur

  • @panchalchetan0
    @panchalchetan02 жыл бұрын

    Superb Raghav. thank you.

  • @RaghavPal

    @RaghavPal

    2 жыл бұрын

    Most welcome

  • @sudhanshusekhar3786
    @sudhanshusekhar37862 жыл бұрын

    Well Organized and Simplified Understanding . Great going Raghav !!!

  • @RaghavPal

    @RaghavPal

    2 жыл бұрын

    Thanks Sudhanshu

  • @akshaysaini9740
    @akshaysaini97406 жыл бұрын

    Hi Raghav I like your videos very much.. Thanks for taking out time and preparing all this tutorial. just wanted to check will there be a kubernetes playlist soon..

  • @RaghavPal

    @RaghavPal

    6 жыл бұрын

    Hi Akshay, its in my list but can take some time.

  • @bmkrissh8714

    @bmkrissh8714

    5 жыл бұрын

    @@RaghavPal Dockers Networkings please as Video 15

  • @bajirainabanu6599
    @bajirainabanu65993 жыл бұрын

    Thank you for such a useful video.

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    Most welcome Baji

  • @trollerninja4356
    @trollerninja43563 жыл бұрын

    when you join the swarm as a worker by specifying the manager ip, the port number that's specified there in the ip is 2376..so thats apparently docker daemon port which may result in an error..this was written on the docker docs page itself..so the docs suggest that we specify 2377 when we do swarm init and then join as worker node with the ip that we will see there..it works like a charm

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    Hi thanks for adding this

  • @polsanisandeep1706
    @polsanisandeep17063 жыл бұрын

    Nice one Raagav

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    Thanks Polsani

  • @raviburra2347
    @raviburra23475 жыл бұрын

    an awesome video on Docker swarm.. appreciated for posting this.

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    Thanks Ravi

  • @madaboutpickleball834
    @madaboutpickleball8345 жыл бұрын

    Very good notes .. good job Raghav

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    You're welcome

  • @HarshGupta-by3hx
    @HarshGupta-by3hx4 жыл бұрын

    thanks a lot Raghav. your tutorials are well explanatory with good examples.

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    You're welcome Harsh

  • @ChatGPTtest-tp3vi
    @ChatGPTtest-tp3viАй бұрын

    Hello Raghav Da, This tutorial is really great for a beginner like me but since I am working on docker latest version I can't find docker-machine in my system installed neither was I successful to install it in my system separately, if you can please guide. Also just checking if there is any recent tutorial on docker swarm? Thanks a ton Binita

  • @RaghavPal

    @RaghavPal

    Ай бұрын

    1. Docker Machine: - Docker Machine has been removed from later versions of Docker Desktop. However, you can still install it separately if needed. - For macOS, you can use Homebrew to install Docker Machine with the following command: ``` brew install docker-machine ``` - Once installed, you can use Docker Machine commands as usual. Keep in mind that Docker Machine is now merged into the `docker` command. For example: - Instead of `docker-machine init`, use `docker swarm init` - Instead of `docker-machine join`, use `docker swarm join` - For more commands, use `docker swarm --help` 2. Docker Swarm Tutorial: - To get started with Docker Swarm, follow the official [Docker Swarm tutorial] docs.docker.com/engine/swarm/swarm-tutorial/ - This tutorial covers initializing a cluster of Docker Engines in swarm mode, adding nodes to the swarm, deploying application services, and managing the swarm. - If you're new to Docker, it's a great way to learn the basics and explore container orchestration -

  • @craghava5834
    @craghava58344 жыл бұрын

    short and nice video, very useful video

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Thanks for watching Raghava

  • @techfanatic588
    @techfanatic5883 жыл бұрын

    Great Effort!!

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    Thanks a lot

  • @restuwahyusaputra7764
    @restuwahyusaputra77643 жыл бұрын

    Amazing tutorial for docker swarm, terimakasih pak

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    Most welcome

  • @iu665
    @iu6655 жыл бұрын

    good and simple to learn

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    Glad to know that.

  • @mjnyc88
    @mjnyc884 жыл бұрын

    You are angel brother, you explain stuff in very very easy words, which blessing for people like me, i was not understanding what is docker, but your videos gave me know a very solid base, Bundle of thanks

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    You're welcome Muzzamil. Thanks for the wishes. Humbled

  • @mjnyc88

    @mjnyc88

    4 жыл бұрын

    Is there a way that we can have live session, you can teach me Docker in few session and you can charge me whatever is reasonable, i know there are paid tutorial but i would like to have live session or class, Muzzamiljaved1@gmail.com +19292537393 Thanks

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Hi Muzzamil, Live session will be difficult for me. Engaged with multiple events. You can learn from here and can send me messages - automationstepbystep.com/online-courses/

  • @nagesha7938
    @nagesha79384 жыл бұрын

    Excellent teach sir 👍

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Thanks Nagesh

  • @susmitshaw3617
    @susmitshaw36174 жыл бұрын

    And Thankyou so much Sir for this super simplified course on Docker... You are an awesome teacher...Thankyou so much from the bottom of my heart !!!

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    You are most welcome Susmit

  • @claudiocarixe6651
    @claudiocarixe6651 Жыл бұрын

    Such a great content 😊

  • @RaghavPal

    @RaghavPal

    Жыл бұрын

    I'm glad you like it

  • @user-ex3ig9cv2n
    @user-ex3ig9cv2n Жыл бұрын

    thank you so much for ur help its helps me alot

  • @RaghavPal

    @RaghavPal

    Жыл бұрын

    Most welcome Anu

  • @himanshuchoudhary4901
    @himanshuchoudhary49013 жыл бұрын

    Ultimate series. Highly appreciate your efforts.

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    Thanks a ton Himanshu

  • @1manairband
    @1manairband4 жыл бұрын

    Thanks, simple and easy to understand.

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Glad it was helpful!

  • @nwantaarawaiva
    @nwantaarawaiva3 жыл бұрын

    Great tutorial, easy to understand and very good example. Thank you very much!!

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    You are welcome!

  • @subhankarb100
    @subhankarb1004 жыл бұрын

    all steps nicely explained .. really a very useful tutorial ...

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Glad it was helpful Subhankar

  • @kevalpatel5809
    @kevalpatel58094 жыл бұрын

    very well explained

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Thanks for watching Keval

  • @patilsanketv
    @patilsanketv5 жыл бұрын

    Superb ....!!!!

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    Thanks for your message Sanket

  • @hoangedward
    @hoangedward5 жыл бұрын

    Very useful. Thanks!

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    You're welcome Hoang

  • @donny_bahama
    @donny_bahama2 жыл бұрын

    Good tutorial! I came here knowing nothing about Docker Swarm and now I feel comfortable to get started playing with it. I have 2 questions/observations: 1) In the case of nginx where 2 nodes were running 14.0.1 and 1 node was running “latest”, will the swarm still operate properly with nodes running different versions? 2) while we have the advantage of redundancy by having multiple nodes, we still have a single point of failure if the physical host fails. Can we create a swarm that spans multiple physical hosts? If so, how?

  • @RaghavPal

    @RaghavPal

    2 жыл бұрын

    Hi Donny, we can, I will try to do a session on this

  • @SelomAMOUZOU
    @SelomAMOUZOU4 жыл бұрын

    You make the Docker Swarm topic look so simple. Nicely explained.

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Happy to know this Lom

  • @yamuneshrastogi7535
    @yamuneshrastogi7535 Жыл бұрын

    Nicely explained

  • @RaghavPal

    @RaghavPal

    Жыл бұрын

    Thanks

  • @mohitggarg
    @mohitggarg4 жыл бұрын

    A must watch video...thanks for posting it...

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    So happy to read this Mohit. All the best

  • @DigvijayKotekar
    @DigvijayKotekar5 жыл бұрын

    Thank you very much Raghav Sir for this very easy steps, descriptive information about Docker Swarm

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    You're welcome Digvijay

  • @krishnajunk
    @krishnajunk5 жыл бұрын

    Thanks. Need quick clarifications, 1) Is it making use of locally available images, when you run 'services'? 2) Can we use 'docker-compose.yml' file for multi image container? If so how to refer it? 2) General Q: If you use 'virtualbox' for node creation, then we have to pay for overhead of hypervisor (this is benefit of not having hypervisor on docker) what typically we compare container against VM right?

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    Hi, 1) when you run, it checks if the image is available locally else pull it from repo 2) yes, we can do it. Refer - docs.docker.com/compose/reference/overview/ 3) Some info on this you can find here - kzread.info/dash/bejne/YplhrcuAeqzPdMY.html

  • @Rhythmicwalker
    @Rhythmicwalker4 жыл бұрын

    I am following your videos and need to say your videos are simple to understand. Great work bro . Keep it up 👍

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Happy to know it helps Prakash

  • @musikele
    @musikele4 жыл бұрын

    Super tutorial. I have a question. You showed that nginx was running on the three IPs of the docker swarm. To show it, you opened chrome and put the ip in a chrome tab. Then, you created a fourth instance of nginx (scaling up). How can I access that instance from chrome? port 80 should be already occupied, isn'it?

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Hi Michele, This is due to INGRESS AND ROUND ROBIN LOAD BALANCING This explains it beautifully stackoverflow.com/questions/46407531/docker-swarm-scaling-behaviour-on-port-mapping forums.docker.com/t/how-does-docker-swarm-map-ports-twice/41623 blog.scottlogic.com/2016/08/30/docker-1-12-swarm-mode-round-robin.html

  • @tylerb5017
    @tylerb50174 жыл бұрын

    Great Video! Very easy to follow!

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Happy to know Tyler

  • @rameshlingadalli7067
    @rameshlingadalli70673 жыл бұрын

    Hi Raghav, i have gone through all your docker videos. It was awesome videos. Now i am familiar with docker now. could you please make videos on docker portainer. Thanks in advance

  • @RaghavPal

    @RaghavPal

    2 жыл бұрын

    Sure Ramesh, will plan

  • @mohamedasaruddin8027
    @mohamedasaruddin80274 жыл бұрын

    Successfully completed dockers ❤️ very simple ❤️ thanks for this Raghav ❤️

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    You're welcome Md. Asaruddin

  • @saiprasadini9137
    @saiprasadini91374 жыл бұрын

    It is very clear to understand the docker swarm, Could you please explain the spring boot app to generate the docker image and deploy docker image in docker container and using docker swarm how to scale up and scale down the services dynamically please make a single video for above all

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Hi Sai, I will try to do a session with Sprint Boot app. For now, pls try to find an example online

  • @sharish1818
    @sharish18184 жыл бұрын

    thank you so much Raghac

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    You're welcome Harish

  • @ThaiNguyenHong
    @ThaiNguyenHong4 жыл бұрын

    The video is very useful for me! Thank you very much!

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Glad it was helpful!

  • @purnimadhubhashi1617
    @purnimadhubhashi16175 жыл бұрын

    Thanks Raghav. I have a issue while creating docker machine. I am using windows 10. Can you pls hep me here $ docker-machine create --driver hyperv manager1 Running pre-create checks... Wrapper Docker Machine process exiting due to closed plugin server (connection is shut down) Error with pre-create check: "read tcp 127.0.0.1:52352->127.0.0.1:52351: wsarecv: An existing connection was forcibly closed by the remote host."

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    Hi Purni, not sure the real cause on your system. Try to get some information from here - github.com/docker/machine/issues/2318

  • @Udzial
    @Udzial2 жыл бұрын

    Thank you for this able to understand this completely. great to see you have done this magic in 2018. looks like docker-machine is in deprecated mode now. But i think concept would remain same. Thank you for covering this topic

  • @RaghavPal

    @RaghavPal

    2 жыл бұрын

    Most welcome, I will try creating new videos

  • @jaiadheedhan
    @jaiadheedhan3 жыл бұрын

    clear and excellent demo on this topic Docker Swarm

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    Thanks for watching Jayakumar

  • @abijiths4978
    @abijiths49783 жыл бұрын

    Awesome video bro! Very useful and informative for beginner. Thanks for this work.

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    Glad it helped Abijith

  • @sd.tajuddin5864
    @sd.tajuddin58644 жыл бұрын

    Good stuff raghav. Clean explanation. I did tried on aws ec2 ubuntu instance i got this error "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory". Can you help me

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Hi, did you watch the installation videos. I believe I covered this there. I think I got this on the windows session. Can also check here github.com/docker/machine/issues/4271

  • @cz75ww
    @cz75ww5 жыл бұрын

    Excellent procedure and thanks very much to share your skill

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    You're welcome Fabiano

  • @ParniSkandan
    @ParniSkandan5 жыл бұрын

    Nice videos

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    thanks for watching Lakshmi

  • @neilaryaofficial
    @neilaryaofficial4 жыл бұрын

    Thanx, Followed your series till the end and now I can easily understand documentation and implement docker.

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    So happy to know this. All the best

  • @sahinsarkar7293
    @sahinsarkar72934 жыл бұрын

    When multiple containers are running on the same VM with same port mapping, why is there no conflict in running the containers? When we access nginx instance on any VM having multiple containers of nginx running, which instance of nginx does the browser point to?

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Hi Sachin, very good question. This is due to INGRESS AND ROUND ROBIN LOAD BALANCING This explains it beautifully stackoverflow.com/questions/46407531/docker-swarm-scaling-behaviour-on-port-mapping forums.docker.com/t/how-does-docker-swarm-map-ports-twice/41623 blog.scottlogic.com/2016/08/30/docker-1-12-swarm-mode-round-robin.html

  • @sahinsarkar7293

    @sahinsarkar7293

    4 жыл бұрын

    Thanks for replying and answering the question 😊

  • @anshumaria4037
    @anshumaria40372 жыл бұрын

    Hi Raghav! your tutorial is best for beginners just like me. I am very confused with the docker swarm. I have a doubt. Can we manage multiple servers(multiple systems) with the swarm manager?

  • @RaghavPal

    @RaghavPal

    2 жыл бұрын

    Yes, for what is in scope under docker

  • @AB80008
    @AB800085 жыл бұрын

    32:03 i was like who is playing my guitar 😱😂. btw nicely explained. Thank you Sir . 👍

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    You're welcome

  • @ekc133
    @ekc1333 жыл бұрын

    You are really fantastic, very awesome tutorial.but also make video on docker networking please.

  • @RaghavPal

    @RaghavPal

    2 жыл бұрын

    Sure will plan

  • @helmet_saga
    @helmet_saga5 жыл бұрын

    Very well Sir ....Am totally new to docker ..it is very helpful ..thank you so much

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    You're welcome Prashant

  • @user-gl7gg8gz2g
    @user-gl7gg8gz2g4 жыл бұрын

    Thank you very much!

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    You're welcome!

  • @vvkkumar3691
    @vvkkumar36916 жыл бұрын

    Hi Raghav ,this is very nice tutorial for docker . One request for you please make Kubernetes tutorials also.

  • @RaghavPal

    @RaghavPal

    6 жыл бұрын

    Hi, sure I will take that up soon

  • @shriharees5428

    @shriharees5428

    5 жыл бұрын

    Hi raghav please make kubeenetes video

  • @shuvhashispaul2865
    @shuvhashispaul28654 жыл бұрын

    Awesome training materials Raghav. It helped me a lot to understand docker as well as to use it. :)

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Happy to know this Shuvhashis

  • @AdnanAli-nd1wq
    @AdnanAli-nd1wq4 жыл бұрын

    Really great tutorials. Thank you Raghav

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    You're welcome Adnan

  • @manueljordan317
    @manueljordan317 Жыл бұрын

    Thanks for this video - just being curious, in 2022 is valuable learn "Docker Swarm" or is better go directly to "kubernetes"? Thank You

  • @RaghavPal

    @RaghavPal

    Жыл бұрын

    Both! I will suggest to watch this to get information and then you will be in a better position to compare Docker Swarm with Kubernetes

  • @tobiasmucksch9441
    @tobiasmucksch94414 жыл бұрын

    Thank you for this awesome tutorial!

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    You're welcome Tobias

  • @codewithvinod9033
    @codewithvinod90333 жыл бұрын

    Great way to tech, please create video on kubernetes

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    Sure, here - kzread.info/head/PLhW3qG5bs-L8EU_Oocu6RkNPpYpaamtXX

  • @saiprasadini9137
    @saiprasadini91374 жыл бұрын

    May i know what is the difference between the auto scaling vs load balancing in docker and Using docker swarm we can achieve load balancing and auto-scaling and how we can scale up and down the spring boot application based on requests using docker swarm and May i know docker swarm to achieve client side load balancing

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Hi Sai, load balancing is distributing load evenly on the servers automationstepbystep.com/2020/04/28/a-story-what-is-load-balancer/ where as scaling up or down is adding or removing servers based on needs and requirements. You can find some examples for spring boot online

  • @girishgodage
    @girishgodage5 жыл бұрын

    Hi Raghav, This video is very informative.Request you please make video on kubernetes

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    Thanks Girish, will take up Kubernetes soon

  • @satyaramesh7367

    @satyaramesh7367

    4 жыл бұрын

    @@RaghavPal Waiting for Kubernetes Videos Brother.

  • @shivam1427
    @shivam14276 жыл бұрын

    Hi Raghav. Thank you for another awesome tutorial. I am getting confused between docker compose and docker swarm. Unable to differentiate between them. Both of them provides scaling option.

  • @shivam1427

    @shivam1427

    6 жыл бұрын

    Also, @28:04 updating the version randomly started the service on worker2 and shut it down on worker1 whereas before there was nothing working on worker2.

  • @RaghavPal

    @RaghavPal

    6 жыл бұрын

    Hi Shivam, hope you have seen both the videos. Docker Compose is used to setup application with different components. So you can create multiple containers and connect them for the application to work. Docker Swarm is an orchestration tool Here is good information - www.quora.com/Whats-the-difference-between-Docker-Swarm-Docker-Compose-and-Docker-Networks

  • @bhaskergour
    @bhaskergour4 жыл бұрын

    Thanks Raghav

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    You're welcome Bhasker

  • @bmkrissh8714
    @bmkrissh87145 жыл бұрын

    A docker compose file with scale commands will also do the same job? what is the difference between compose and swarm? i understand that swarm is used for Orchestration

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    Yes Krissh, found some useful information on this here : www.quora.com/Whats-the-difference-between-Docker-Swarm-Docker-Compose-and-Docker-Networks stackoverflow.com/questions/42545431/when-to-use-docker-compose-and-when-to-use-docker-swarm

  • @gopi9980
    @gopi99804 жыл бұрын

    Very nice thanks a lot Raghav.. waiting for Shell scripting,Ansible,Terraform..

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Most welcome Gopinath, Will do very soon.

  • @rahul4024
    @rahul40244 жыл бұрын

    Hello Raghav. Question 1: =========================== What if i have 1 master and 2 worker And i scale the nginx service to =10 Now multiple containers are running on each node of the swarm. If i open my browser and connect to IP of Worker1 which has 3 containers running, what will happen? are the 3 containers in the worker node automatically load balanced?? Questions 2: What can i do if i want to load balance all 3 swarm nodes..so there is 1 IP for connecting to the nginx website on any of the containers or any of the nodes?

  • @RaghavPal

    @RaghavPal

    4 жыл бұрын

    Hi For this will need to understand docker port mapping and scaling. Here are some references docs.docker.com/engine/swarm/key-concepts/ stackoverflow.com/questions/38537849/docker-swarm-mode-multiple-services-same-port github.com/docker/swarm/issues/2499 stackoverflow.com/questions/38853461/docker-swarm-map-ports-and-scaling

  • @camilacarrizo13
    @camilacarrizo13 Жыл бұрын

    Hi Raghav! thank for your video and help us. I have a doubt: 1- I can't install docker-machine, because now isn't more available, or not? 2 - I can not start the command "docker-machine create --driver virtualbox manager1", why? is for not available as before? Thank you.

  • @RaghavPal

    @RaghavPal

    Жыл бұрын

    Hi Camila Docker Machine is still available and can be installed from the Docker website: docs.docker.com/machine/install-machine/ The docker-machine create command is used to create a new Docker host using a specified driver. The virtualbox driver is used to create a Docker host running in a VirtualBox virtual machine. If you're unable to start the command, it could be due to a few reasons: VirtualBox is not installed on your system. You need to install VirtualBox before you can use the virtualbox driver. The VirtualBox driver is not installed in Docker Machine. You can install the driver using the command docker-machine create -d virtualbox. There may be an issue with your Docker Machine installation or configuration. You can try reinstalling Docker Machine or checking your configuration settings. I recommend checking if VirtualBox is installed and if the VirtualBox driver is installed in Docker Machine before attempting to create a new Docker host.

  • @girlsincode9255
    @girlsincode92553 жыл бұрын

    well done!!

  • @RaghavPal

    @RaghavPal

    3 жыл бұрын

    Thanks

  • @raghavayoga
    @raghavayoga5 жыл бұрын

    Really soooper.... Simple, super and step by step..... You are awesome sir....

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    Thanks Raghavendra. humbled

  • @thiyagarajansakthivel380
    @thiyagarajansakthivel3805 жыл бұрын

    Thanks Raghav. it is very useful for the beginner like me.

  • @RaghavPal

    @RaghavPal

    5 жыл бұрын

    Glad to know this Thiyagarajan