Add ALL of your Docker Hosts to ONE Portainer Dashboard Using the Portainer Edge Agent

Поділитися
Вставка
  • Опубліковано 16 вер 2024
  • Learn how to put all of your Docker hosts into one Portainer dashboard using the Portainer Edge Agent. It literally takes 2 minutes! Using the Portainer Edge Agent does require you to be using a Portainer host with port 8000. See the instructions below.
    Install Portainer using the following command.
    sudo docker run -d \
    --name="portainer" \
    --restart on-failure \
    -p 9000:9000 \
    -p 8000:8000 \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v portainer_data:/data \
    portainer/portainer-ce:latest
    Portainer Edge Agent Instructions
    downloads.port...
    Video on how to install Portainer on Ubuntu
    • Install Docker and Por...
    👍 Subscribe!
    www.youtube.co....
    ❤️If you want to make a monetary donation. Thank you!
    ko-fi.com/geeked
    💬 Join us on Discord
    / discord
    Tags used in this video:
    2021, portainer, download, tutorial, networking, selfhosting, self-hosted, self hosting, geeked, homelab, geekedtv, grablab, linux, nginx proxy manager, docker compose, docker, radio station, self hosted radio station, portainer edge agent, edge agent

КОМЕНТАРІ • 64

  • @selfhosted
    @selfhosted  3 роки тому

    Let me know what you'd like to see a video on. I'm looking for new ideas!

    • @KyleRassweiler
      @KyleRassweiler 3 роки тому +4

      I haven't checked if you have it covered already, but maybe a local DNS server (Or how ever you manage to access things internally and externally).

    • @mguilherme82
      @mguilherme82 3 роки тому +1

      What about creating a cluster with portainer? Not sure if you already done it!

    • @michaelmuyakwa4269
      @michaelmuyakwa4269 3 роки тому +1

      Pipelines with Jenkins. Example: Whenever you update a Docker-Compose.yml or Docker-File and update it to a git repository, then let Jenkins pick it up and test it and execute it, if the test was successful.

    • @DimitriPappas
      @DimitriPappas 2 роки тому

      Managing (automatic?) updates for several hosts, vm's, containers etc / at scale.. that's something I need to figure out because I spend a lot of time keeping things up to date and needing to interact with update prompts, especially with apt/apt-get ! I guess there's not going to be a silver bullet for every OS, application, hardware brand etc out there, but definitely getting this covered for the home-lab side of things at least, could free up a lot of management time to use for other purposes instead

    • @selfhosted
      @selfhosted  2 роки тому

      @@DimitriPappas Ansible is great for updating multiple containers at once. Just run the script and it does everything for you.

  • @jumpman1823
    @jumpman1823 3 роки тому +5

    That fact that we're halfway through 2021 makes 2020 feel like a fever dream.

  • @darthkielbasa
    @darthkielbasa Рік тому

    One of the great things about finding a content creator a few seasons into their game is watching the backlog of videos and finding super useful stuff. Thanks for posting this. I have several portainer instances across several devices and this will tidy things nicely.

  • @mguilherme82
    @mguilherme82 3 роки тому +2

    Thanks for the video, I’m a portainer user for several years and had a few instances running in a few hosts, this is perfect 🙂

  • @KyleRassweiler
    @KyleRassweiler 3 роки тому +2

    My duuuuuuuuuude! Thank you, for what ever reason I was struggling to wrap my head around this for months!

    • @selfhosted
      @selfhosted  3 роки тому

      They’ve made it pretty simple. Just run the agent command they give in the portainer dashboard on your docker host and connect it. Super simple eh?

  • @michaell7511
    @michaell7511 3 роки тому

    Holly molly! Did you say "you hoped this help a few people out there"? That's an understatement. This is an amazing tutorial. Thank you sir!

  • @dushkodavchev
    @dushkodavchev 2 роки тому

    First of all, I want to thank you very much for this video.
    I'm currently running version 2.14.2 and they implemented the bar for arranging by tags, groups, etc.
    I found this video very helpful and I'm really glad I found your channel.

  • @RandyHanley
    @RandyHanley 3 роки тому +2

    Always love your videos, man! You always make it to-the-point and easy to understand. I appreciate your hard work.

  • @ViperGuy15
    @ViperGuy15 3 роки тому +1

    YES. THIS IS THE SOLUTION I WAS LOOKING FOR. so many portainer installations lol thank you

  • @sexualsmile
    @sexualsmile 3 роки тому +1

    Glad your back dude!

  • @mirahles
    @mirahles 9 місяців тому

    this was something that i never knew i could do but it has changed so much about how i do stuff

  • @cmndthor0
    @cmndthor0 2 роки тому +11

    It looks like they renamed Endpoints to Environments in an update. Incase someone else is confused.

  • @anibalandrade754
    @anibalandrade754 Рік тому

    Congrats for the video! Straight to the point and helped me a lot!

  • @cattivello
    @cattivello Рік тому

    Fantastic. thanks. I run the latest portainer now October 2022. It seems that the Public IP you cannot add it while creating the Edge Agent. But once created, edit and add the IP. Works really well. Thanks for the video.

  • @magicmanj32
    @magicmanj32 3 роки тому

    I will be implimenting this for sure, thanks for the video

  • @andre-le-bone-aparte
    @andre-le-bone-aparte Рік тому

    Just found your channel. Excellent Content. Another sub for you sir!

  • @ronm6585
    @ronm6585 3 роки тому +1

    Thanks.

  • @TheHesster
    @TheHesster 3 роки тому +3

    What's the difference between using the portainer edge agent and the portainer agent? I've been doing this but using the agent by deploying the agent only and then adding the endpoint at Port 9001. It seems to have the same functionality but maybe I'm missing something???

    • @selfhosted
      @selfhosted  3 роки тому +2

      Because you are exposing the API. The edge agent doesnt need modification to any files and it only allows one machine to bind to it. Bit more secure that way but either work

    • @TheHesster
      @TheHesster 3 роки тому +1

      @@selfhosted gotcha thanks!

  • @matthewterpstra4675
    @matthewterpstra4675 3 роки тому +3

    My 2 other instances won't open and say the endpoints are unreachable.

    • @selfhosted
      @selfhosted  3 роки тому +2

      Is your Portainer instance exposing port 8000? If not, reinstall it using the command in the description. :)

    • @sparrowhawkl
      @sparrowhawkl 2 роки тому

      @@selfhosted Perfect! thank's

  • @33jnewman
    @33jnewman 3 роки тому +1

    Hey thanks for this. Unfortunately I am getting results similar to killbotvii in that the newly created endpoint has status of associated and never proceeds. Would you have any idea why this occurs?

  • @mattiashedman8845
    @mattiashedman8845 3 роки тому +3

    Great video! I just started using Portainer after years of taking care of docker-compose files. Still am but I needed a more simple log tool and a gui for it all. But doing as you say, I do get an heartbeat but when I click on it I get an error.. Failed loading endpoint
    Endpoint is unreachable and there is no snapshot available for offline browsing. What is up with that? Any idea?

    • @nelsonmercedes1774
      @nelsonmercedes1774 2 роки тому

      did you figure anything out? same problem here.

    • @mattiashedman8845
      @mattiashedman8845 2 роки тому

      @@nelsonmercedes1774 I left Portainer all together and been using docker-compose ever since without any issues.

  • @DimitriPappas
    @DimitriPappas 2 роки тому +2

    Any specific reason you choose to run each of your apps in their own LXC containers, over running a single docker/portainer instance on proxmox and then hosting all the apps within that rather?

    • @selfhosted
      @selfhosted  2 роки тому +3

      Good question and I'll explain. I like to tinker a lot. SO if I am hosting websites for someone or myself and I need to reboot the container, it takes down every single app with it. I do it this way for that exact reason.

    • @DimitriPappas
      @DimitriPappas 2 роки тому +1

      @@selfhosted Ah nice, that makes a lot more sense ! Thanks for responding :D

  • @royitoroy
    @royitoroy 2 роки тому

    wow this its good, ive always thinked that it should exist this solution but i didnt know how thanks for yu video... i ask myself... do i have to install portainer in all the other machines that i wan to run docker as well to connet it with the main portainer?

  • @mattpowell3287
    @mattpowell3287 3 роки тому

    Hi, great video, thanks. Can you please let me know how to update the portainer edge agent once it is installed and operational? Thanks.

  • @Varian-Killbot
    @Varian-Killbot 3 роки тому +1

    This did not work for me. I followed your instructions to the letter, then started over and tried again, and it still refused to show a heartbeat, only ever displaying "associated" crossed out. It seems that this does not work if the server is outside your network.

    • @clixt984
      @clixt984 2 роки тому

      I ran into this issue when I click "Finish" before running the docker command. Make sure you run the docker command first before "finishing" the wizard. This is on Portainer 12.14.2 BTW.

  • @dennisyildirim2708
    @dennisyildirim2708 2 роки тому

    Did not work on my case, somehow says environment is unreachable. I see the heartbeat though. Checked if it's firewall related , took down the firewall on synology, but still it could not reach to my PC portainer agent.... Searched over the web, irrelevant posts everywhere...

  • @clixt984
    @clixt984 2 роки тому +2

    I followed this tutorial to the dot, and I was able to get a heartbeat, but that's it. I get a "Environment is unreachable error"

    • @asaf7132
      @asaf7132 2 роки тому

      did you find any solution?

    • @clixt984
      @clixt984 2 роки тому

      @@asaf7132 Actually yes, but it's probably not best practice since it's more a band aid fix. What I did is since I already use Cloudflared (tunnel) is I just made a new tunnel that points to [server-ip:9001] and used Agent, not Edge Agent. In the Zero Trust settings, make sure it's HTTPS and that No TLS Verify is enabled.
      Edit: I tried messing with it by adding valid certificates, and I broke it. Can't seem to fix it haha.
      Edit 2: The latest version of Portainer (2.15.0) will not allow you to connect to the Agent via URL only, hence my solution won't work anymore.

  • @YuriyKondrashov
    @YuriyKondrashov 3 роки тому +1

    4:13 Your edge key is visible when you paste it. But then you say that it shouldn't be shared with anyone. I hope you've changed it already.

    • @selfhosted
      @selfhosted  3 роки тому +3

      Yeah... I realized it doesn't matter anyway because you can only bind it once. Also, I don't expose my Portainer over the internet. But for intensive purposes I tried to blur the best I could to show it's important not to share this info. This Portainer host was destroyed after I made the video as-well. Thank you for letting me know though!

  • @camerontgore
    @camerontgore 3 роки тому +2

    Wait you mean it's not March 2020 any more?!?!

  • @Avico78
    @Avico78 Рік тому

    great one! thanks for sharing , what's the name of the dashboard u are using?

  • @chei86
    @chei86 6 місяців тому

    WHat is the difference between the Docker Agent and the Docker Edge Agent?

  • @SingleSeeker
    @SingleSeeker 3 роки тому

    How to build homelab wiki with portainer?

  • @jmcbri
    @jmcbri 3 місяці тому

    The video resolution
    setting is too high.

  • @TvxLinux
    @TvxLinux 2 роки тому

    You accidently exposed your edge key at 04:15. This video is a year old so ill assume you already know/fixed the issue or are using a different key.

    • @selfhosted
      @selfhosted  2 роки тому +1

      I don’t use edge anymore. Just the agent.

    • @TvxLinux
      @TvxLinux 2 роки тому

      @@selfhosted After seeing your video, i found out that you can just use the agent. Which worked for me perfectly as well. Isolating services into containers and then having them centralized in portainer is a gift!

  • @michaelmuyakwa4269
    @michaelmuyakwa4269 3 роки тому

    Noice!

  • @thinktech2go
    @thinktech2go Рік тому

    you blurred the id & key in portainer but not proxmox. hopefully you have a different setup by now.

    • @selfhosted
      @selfhosted  Рік тому +1

      Indeed. That’s why I use proxmox. So I can easily setup example CT and VMs and destroy them when I’m done using them for videos.

    • @GadgeteerZA
      @GadgeteerZA 17 днів тому

      @@selfhosted can also now on UA-cam add blurring after the video is published - been a saviour for my minor slips.

  • @danny7902
    @danny7902 Рік тому

    Portainer sees an agent as a node.. 5 nodes limit is the bottleneck

    • @selfhosted
      @selfhosted  Рік тому

      Bottleneck for what? I only access one agent at a time anyway. I’m curious what you mean by that.

  • @krdesigns
    @krdesigns 2 роки тому +1

    This video help nothing. Edge never work for me dont know why