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
Let me know what you'd like to see a video on. I'm looking for new ideas!
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).
What about creating a cluster with portainer? Not sure if you already done it!
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.
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
@@DimitriPappas Ansible is great for updating multiple containers at once. Just run the script and it does everything for you.
That fact that we're halfway through 2021 makes 2020 feel like a fever dream.
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.
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 🙂
My duuuuuuuuuude! Thank you, for what ever reason I was struggling to wrap my head around this for months!
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?
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!
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.
Always love your videos, man! You always make it to-the-point and easy to understand. I appreciate your hard work.
YES. THIS IS THE SOLUTION I WAS LOOKING FOR. so many portainer installations lol thank you
Glad your back dude!
this was something that i never knew i could do but it has changed so much about how i do stuff
It looks like they renamed Endpoints to Environments in an update. Incase someone else is confused.
Thank you!
Congrats for the video! Straight to the point and helped me a lot!
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.
I will be implimenting this for sure, thanks for the video
Just found your channel. Excellent Content. Another sub for you sir!
Thanks.
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???
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
@@selfhosted gotcha thanks!
My 2 other instances won't open and say the endpoints are unreachable.
Is your Portainer instance exposing port 8000? If not, reinstall it using the command in the description. :)
@@selfhosted Perfect! thank's
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?
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?
did you figure anything out? same problem here.
@@nelsonmercedes1774 I left Portainer all together and been using docker-compose ever since without any issues.
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?
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.
@@selfhosted Ah nice, that makes a lot more sense ! Thanks for responding :D
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?
Hi, great video, thanks. Can you please let me know how to update the portainer edge agent once it is installed and operational? Thanks.
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.
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.
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...
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"
did you find any solution?
@@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.
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.
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!
Wait you mean it's not March 2020 any more?!?!
great one! thanks for sharing , what's the name of the dashboard u are using?
It’s Homer
WHat is the difference between the Docker Agent and the Docker Edge Agent?
How to build homelab wiki with portainer?
The video resolution
setting is too high.
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.
I don’t use edge anymore. Just the agent.
@@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!
Noice!
you blurred the id & key in portainer but not proxmox. hopefully you have a different setup by now.
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.
@@selfhosted can also now on UA-cam add blurring after the video is published - been a saviour for my minor slips.
Portainer sees an agent as a node.. 5 nodes limit is the bottleneck
Bottleneck for what? I only access one agent at a time anyway. I’m curious what you mean by that.
This video help nothing. Edge never work for me dont know why