Docker Swarm Mode Walkthrough

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ค. 2024
  • In Docker 1.12, Swarm Mode is built into the Docker Engine so it's super easy to use. This walkthrough shows you how to create a multi-node Docker Swarm, and how to create, scale and remove services.

ความคิดเห็น • 141

  • @PratikAnand
    @PratikAnand 7 ปีที่แล้ว +62

    Your pacing is perfect. I suggest you making more videos of these kind. Your pacing is just right.

  • @stiqsify
    @stiqsify 7 ปีที่แล้ว +29

    You're an awesome instructor. I could listen for hours. I don't even have to pause and rewind. Got it right away.

  • @ArjunBahree
    @ArjunBahree 8 ปีที่แล้ว +29

    Thanks Elton! This was fantastic quick walkthrough. I would suggest making more videos around different aspects of docker, and publishing them. Would be very useful to the community. I have seen your many other courses, and must say your explanation style is superb.

    • @EltonStoneman
      @EltonStoneman  8 ปีที่แล้ว +4

      Thanks for that Arjun, glad you found it useful. I am planning more, just need to find the time.

  • @dennisasamoah2213
    @dennisasamoah2213 2 ปีที่แล้ว

    I watched alot of tutorial and this is the only one I understand. Indeed a good teacher makes a huge difference. Thank you.

  • @johngalea2285
    @johngalea2285 5 ปีที่แล้ว +1

    I found this video EXTREMELY helpful. Completely making swarm approachable. I'd love to see it updated with the current docker version. But thanks for doing this Elton.

  • @gregordavis
    @gregordavis 7 ปีที่แล้ว

    This is a very clear and concise walk-through of an introduction to docker swarms. It is especially effective with the combination of diagrams and command line. Well done!

  • @PhDcerberus
    @PhDcerberus 6 ปีที่แล้ว

    Simply perfect explanation, I was looking around how to learn and understand swarm and you teach it in a simple and consise way

  • @cruepprich
    @cruepprich 7 ปีที่แล้ว

    Excellent and concise! I especially appreciate the summary at the end. Please more Docker videos for us newbs.

  • @zetta363
    @zetta363 7 ปีที่แล้ว

    Excellent, quick, and easy to understand demo! Thank you!

  • @ajnbin
    @ajnbin 8 ปีที่แล้ว

    Great presentation, short and concise.
    Thanks Elton.

  • @leepat9226
    @leepat9226 7 ปีที่แล้ว

    This is a very clean and simple explanation and demo for understanding this! Thank you so much!

  • @ajitkumaryadav277
    @ajitkumaryadav277 7 ปีที่แล้ว

    You're an awesome instructor. Simple but in detailed. Thank you so muchhh!!!

  • @laffhubsupport6469
    @laffhubsupport6469 6 ปีที่แล้ว

    Amazing Tutorial! Understood every part of it! Well done Elton!

  • @LakshminarayanaN1
    @LakshminarayanaN1 7 ปีที่แล้ว

    Very good explanation and fantastic instructor. I understood the swarm concept by just watching 12 minutes session. That's Great!

  • @nguyengiavu2002
    @nguyengiavu2002 6 ปีที่แล้ว

    Your video has provided a clear structure and awesome. Thank you so much!

  • @vanflymen
    @vanflymen 7 ปีที่แล้ว

    Excellent demonstration. More of these please!

  • @davidr007
    @davidr007 7 ปีที่แล้ว

    Awesome Elton, What great walk through. I Appreciate this very much. Thanks!

  • @mukunthd
    @mukunthd 7 ปีที่แล้ว

    EXCELLENT...!! Explanation was flawless. Easy to follow

  • @themanhuareview
    @themanhuareview ปีที่แล้ว

    This is the best technique intro I've ever seen.

  • @prashanthb6521
    @prashanthb6521 2 ปีที่แล้ว

    You explained it so simply. Thanks a lot.

  • @anirudhsrinivasan5294
    @anirudhsrinivasan5294 6 ปีที่แล้ว

    Great video about Swarms. Understood it in one go!!!

  • @gabriela.3276
    @gabriela.3276 2 ปีที่แล้ว

    I loved every bit of it. Great video !

  • @rasthana
    @rasthana 5 ปีที่แล้ว

    Excellent Video. Thanks for your effort Elton.

  • @TimothyYe
    @TimothyYe 7 ปีที่แล้ว

    A nice quick walkthrough, Thanks!

  • @Srini-live
    @Srini-live 6 ปีที่แล้ว

    Everything is so perfect in this video ..fantastic job ..thanks a ton :)

  • @fitkis2880
    @fitkis2880 4 ปีที่แล้ว

    That's a nice and simply demo and explanation

  • @Kimomaru
    @Kimomaru 6 ปีที่แล้ว

    Thank you for posting this. Perfection.

  • @reconrecker868
    @reconrecker868 4 ปีที่แล้ว

    This was an amazing video and so clear.

  • @echosquest
    @echosquest 7 ปีที่แล้ว

    Dude this has been so helpful thank you!!! I have been messing up trying to create docker machine swarm nodes and trying to use swarm that way but the information that the engine and the docker swarm commands are different has had me running in circles!! Although i dont see a node column when im running the docker task ls command.

  • @ajk1373
    @ajk1373 7 ปีที่แล้ว

    nice video Elton ---- u have great talent and I would request you to make more videos on all the knowledge you have ---which is help full for others like me ______thanks elton

  • @mamtabhagia1194
    @mamtabhagia1194 6 ปีที่แล้ว

    Thanks a lot for this video! Very well explained.

  • @prateekmeshram7850
    @prateekmeshram7850 4 ปีที่แล้ว

    very nice and to the point tutorial. grate job man!

  • @GiriAlkondanSubbiah
    @GiriAlkondanSubbiah 5 ปีที่แล้ว

    can't comment more than this.. just a perfect one.. subscribed and liked..

  • @Middlestepofficial
    @Middlestepofficial 7 ปีที่แล้ว

    This is extraordinary! I am experimenting now to use Docker swarm to distribute 5G mobile networking SDN nodes, and simulate DoS attack on mobile infrastructure with prevention mechanisms for my master (and later PhD thesis). The redundancy thing (if a node fails, other prevails) is a godly thing! This can be the Chuck Norris of mobile network security. Great video :) Cheers!

  • @cooluser11
    @cooluser11 5 ปีที่แล้ว

    Nice job with walk-through. Keep it up.

  • @starwar0076
    @starwar0076 7 ปีที่แล้ว

    Please make some more videos on docker
    i loved how you explained

  • @seraphpl91
    @seraphpl91 7 ปีที่แล้ว

    Thanks Elton! Well explained video!

  • @Fingiorstyle
    @Fingiorstyle 6 ปีที่แล้ว

    You teach very well, thank you

  • @rougeogameandtech5087
    @rougeogameandtech5087 7 ปีที่แล้ว

    Thank you !! Really clear and useful

  • @pierrelaurent2701
    @pierrelaurent2701 7 ปีที่แล้ว

    Thank you for this Elton ! Crystal clear. Will I have to get more infos regarding load balancing now .. thanks

  • @cuongho7462
    @cuongho7462 6 ปีที่แล้ว

    thanks Elton! this video helps me alot

  • @sreekd6520
    @sreekd6520 7 ปีที่แล้ว

    Very well presented... Perfect!

  • @EnhanceYourCalm215
    @EnhanceYourCalm215 8 ปีที่แล้ว

    Great video! Thanks

  • @iquabius
    @iquabius 6 ปีที่แล้ว

    Awesome explanation!

  • @faiz8117
    @faiz8117 5 ปีที่แล้ว

    awesome narration

  • @anudeepkoliwad3025
    @anudeepkoliwad3025 6 ปีที่แล้ว

    Amazing explanation!!

  • @Piotrus31492
    @Piotrus31492 7 ปีที่แล้ว

    very useful, great presentation

  • @jamesT008
    @jamesT008 6 ปีที่แล้ว

    Very nice....simple n stright

  • @rush2589
    @rush2589 4 ปีที่แล้ว

    Excellent content

  • @maamaamoo
    @maamaamoo 6 ปีที่แล้ว

    Thanks man, really helpful

  • @justinkim7202
    @justinkim7202 7 ปีที่แล้ว

    Thanks a lot!!! Great stuff!

  • @wbasmi
    @wbasmi 6 ปีที่แล้ว

    Awesome Job !

  • @BhanuPratap88
    @BhanuPratap88 7 ปีที่แล้ว +1

    Thanks Elton! for the simple yet amazing explanation.I have a question regarding manager node, what if the manager node goes down is there any way it can delegate the responsibility to some other node.

  • @akhiluthaman2238
    @akhiluthaman2238 5 ปีที่แล้ว

    That was great. You should post more videos

  • @werax62
    @werax62 7 ปีที่แล้ว

    Thank you so much, very useful :D

  • @kishorekrishna83
    @kishorekrishna83 4 ปีที่แล้ว

    Awesome video

  • @arthurtsang7936
    @arthurtsang7936 8 ปีที่แล้ว +3

    thanks. can you also show how to add --constraint to docker service? i've tried adding --label name=node1 to the daemon and --constraint node.labels.name==node1 or --constraint node==node1, with no luck.

  • @mrbassocam
    @mrbassocam 5 ปีที่แล้ว

    Nice video thanks!!!

  • @tonikandex
    @tonikandex 7 ปีที่แล้ว

    Thank You Elton this is a nice simple and clear tutorial as introduction to docker swarm !
    i have a question what if an node with container created already with docker run command ,can swarm recognize those containers ,can i replicate theme to the others node ? thanks in advance

  • @santosharakere
    @santosharakere 7 ปีที่แล้ว

    Excellent. Thanks.

  • @bullet_bg
    @bullet_bg 7 ปีที่แล้ว

    perfect video!!

  • @jtisaks8569
    @jtisaks8569 5 หลายเดือนก่อน

    Really a good video

  • @nevill81
    @nevill81 8 ปีที่แล้ว

    Thanks a lot @Elton Stoneman! One question tough: What happens id the load balancer fails? Can docker/docker swarm also offer a solution for this?

  • @TrijitAcharyyaChowdhury
    @TrijitAcharyyaChowdhury 7 ปีที่แล้ว

    Really helpful

  • @lindhe
    @lindhe 5 ปีที่แล้ว

    Can a machine be both a swarm node and a "regular" docker node?
    BTW: Very clear and yet detailed overview. Awesome work, Elton!

  • @Maxt3r1
    @Maxt3r1 7 ปีที่แล้ว

    perfect explained

  • @coldstone87
    @coldstone87 7 ปีที่แล้ว

    Fantastic.

  • @blackcity25
    @blackcity25 8 ปีที่แล้ว

    Thank you for this great presentation!
    I have two questions please: how can i connect different hosts machines into the same network ? and how can i say that this particular machine is connected to this overlay network (if overlay network is the solution) ?

  • @dineshcondur
    @dineshcondur 6 ปีที่แล้ว

    Good pace. .. will be great to know how the swarm compares with Kubernetes..

  • @OmniTechnologies
    @OmniTechnologies 7 ปีที่แล้ว +1

    DOCKS ROCKS

  • @garagatza
    @garagatza 7 ปีที่แล้ว

    O Captain! My Captain! Nice vid! :)

  • @manideepsaipolavarapu272
    @manideepsaipolavarapu272 4 ปีที่แล้ว

    Thank You

  • @pokerspace_pro
    @pokerspace_pro 6 ปีที่แล้ว

    Thanks Elton :D

  • @sindhkarthic007
    @sindhkarthic007 5 ปีที่แล้ว

    totally useful

  • @pynchia4119
    @pynchia4119 6 ปีที่แล้ว

    Very good tutorial, thank you. However, the load-balancing needs further explanation as it lacks a final example of connection from the browser when replicas are spun up. Can you get rid of the initial external balancer and simply connect to the first one node expecting the swarm to re-route the request to the nodes where the tasks are running?

  • @homanhcuong1875
    @homanhcuong1875 6 ปีที่แล้ว

    wow ,thanks alot

  • @gurudattanadig307
    @gurudattanadig307 7 ปีที่แล้ว

    Simple presentation :-)

  • @andybeephotography
    @andybeephotography 8 ปีที่แล้ว +1

    Thank you Elton! That was really cool! :-)
    Can you tell what happens if node-00 (the manager node) fails? Does docker swarm reassign another node as the new manager or would the whole swarm go down?

    • @EltonStoneman
      @EltonStoneman  8 ปีที่แล้ว +2

      Hi Andy, glad you liked it. In this case there's only one manager, so if you lose it then you can't manage the swarm until it comes back. In production you'd have 3 or 5 managers, one is the active leader, and the others elect a new leader if it goes down.

    • @JacobBrunson
      @JacobBrunson 7 ปีที่แล้ว +5

      Why would you create regular worker nodes instead of making every node a manager?

  • @amenostalgique
    @amenostalgique 7 ปีที่แล้ว

    mind boggling

  • @sagarajayathilaka
    @sagarajayathilaka 4 ปีที่แล้ว

    Excellent $$$$$$$$$$$$$

  • @rickwong5722
    @rickwong5722 5 ปีที่แล้ว +4

    It is a very good video.
    What if the manager goes down? will the worker node is promoted to be a manager automatically ?

    • @KeesRomkes
      @KeesRomkes 4 ปีที่แล้ว

      Rick Wong I’m limited in my knowledge but it seems common practice to add a few managers based on the size of your swarm

  • @ElTebe
    @ElTebe 6 ปีที่แล้ว

    Congrats! Thats a really cool and clear video!
    So, at 11:00 : you shutdown one of the worker nodes. What will happen if the manager node is down?

  • @manmenboy
    @manmenboy 7 ปีที่แล้ว

    thanks alot

  • @jravenger4
    @jravenger4 5 ปีที่แล้ว

    Nicely done. Though you've done this on Linux, I hope I can do it on Windows Server 2016.

  • @brandondewey
    @brandondewey 7 ปีที่แล้ว +6

    can you run two different services, that both use the same port, on one swarm?

    • @svenweber618
      @svenweber618 5 ปีที่แล้ว +1

      If you have a Proxy Routing to the services sure. Take a look at jwilder/nginx-proxy

  • @celsoagra
    @celsoagra 7 ปีที่แล้ว

    Great video!! Would be possible to set an autoscale config for docker swam?

  • @zhaoxueliang4572
    @zhaoxueliang4572 7 ปีที่แล้ว

    Thx a lot for your sharing, Captain! I'm new in swarm and I'm using AWS EC2 as nodes for swarm. I created 3 nodes including swarm manager and I cannot join swarm like you did in the video. each node has its inner IP and a public IP different from it. as your nodes are all in the same subnet, what can I do to join swarm? should I need token to join and which IP should I use?

  • @scienide77
    @scienide77 7 ปีที่แล้ว

    I see the benefits of the swarm for business use. For home use, maybe not so much. Could I run a tvheadend docker in the swarm? It can only handle a certain number of streams on the pi before the cpu maxes out. It would be great if I could install it in a swarm and if one server has the maximum number of streams it would spawn another instance of tvheadend on another node

  • @robsonbittencourt
    @robsonbittencourt 8 ปีที่แล้ว +4

    How do you use docker join without token? I try but without sucess. "Error response from daemon: rpc error: code = 3 desc = A valid join token is necessary to join this cluster".

    • @sumitmulchandani9494
      @sumitmulchandani9494 7 ปีที่แล้ว +4

      In the new version of Docker, the tokens are must. So when you will run the "docker service init" you will get the join command in result, which you can hit in your other nodes.

  • @thapakazi_
    @thapakazi_ 7 ปีที่แล้ว +3

    Thanks Elton,
    I wonder what happens if manager itself goes down for some awry unknown reason 🙈

    • @milesnorton356
      @milesnorton356 6 ปีที่แล้ว

      I believe Managers can also belong to a group called Raft. Not entirely sure as I'm just learning this myself

  • @bhumilsarvaiya1552
    @bhumilsarvaiya1552 6 ปีที่แล้ว

    Awesome video. But what if the manager node goes down? Do other workers node elect a new manager?

  • @karimmemon3828
    @karimmemon3828 7 ปีที่แล้ว

    Nice talk Elton. Have you uploaded the slides somewhere?

  • @hasanyusuf4970
    @hasanyusuf4970 ปีที่แล้ว

    Great

  • @Panicvisual
    @Panicvisual 6 ปีที่แล้ว

    Nice video.
    What happen if an unknown client in the subnet launches the join command? It will ba added automatically to the cluster? Is there a possibility to confirm the adding from the manager?

  • @bernardputersznit64
    @bernardputersznit64 6 ปีที่แล้ว

    lucid - thanx

  • @walterlee7131
    @walterlee7131 6 ปีที่แล้ว

    Thanks, if I want to cluster the server in different servers that maybe in different networks what should I do?

  • @deepjyoti007
    @deepjyoti007 7 ปีที่แล้ว

    Hi, I am running docker in swarm mode in EC2 instances. When I am running my webservice as a docker service in manager node, I am not able to view the same from client node(using client public IP in browser). Is there any way to fix this ?

  • @esu7116
    @esu7116 4 ปีที่แล้ว +1

    Hi! How can I load balance WebSockets? They need sticky sessions, so docker swarm is unable to handle simple WebSockets?
    🤔

  • @bernardomk
    @bernardomk 7 ปีที่แล้ว

    Hi, great video. May I ask which tool did you use to build the infographics?
    Thanks.

    • @EltonStoneman
      @EltonStoneman  7 ปีที่แล้ว

      Bernardo Corrêa PowerPoint!

  • @udaraliyanage
    @udaraliyanage 8 ปีที่แล้ว

    hi,
    this looks amazing and easy to setup compared to DCOS or K8S.
    What happens if we want to start two types of web sites both on port 80. Say I host two web sites with different host names.