DSM 6.2 setting up edge agent to allow portainer to connect

Currently reading
DSM 6.2 setting up edge agent to allow portainer to connect

295
32
NAS
DS1019+ DSM6
Operating system
  1. Windows
Mobile operating system
  1. iOS
anyone had any luck setting up docker edge agent on the synology to allow another instance or portainer (running elsewhere on the LAN - NOT for WAN access)?

i followed the guide here
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.


and, although it did sucessfully add the agent to the synology, whenever i tried to access it via portainer running on another local device it would fail to connect, giving a vague error saying "Environment Unreachable"
 
I run it on my self. Single "main" Portainer host, with other docker hosts connected via the agent.


Last heading in this article.
 
I run it on my self. Single "main" Portainer host, with other docker hosts connected via the agent.


Last heading in this article.

took a look at that article, started at "Add Docker host to your Portainer using an agent"

Stage 1 - completed fine, i can see the container running in docker on the synology
Stage 2 - portainer has changed a few of the settings and pages since the article, but was essentially the same as mentioned in the youtube video.

Environments > Add Environment
Docker > Start Wizard
Select Edge Agent
entered the name - unsure what "Name" it's asking for here , name of the NAS or name of the portainer host?
portainer server URL - http://192.168.50.8:9000 (which is the IP port of the device portainer is running on)
click create - not a lot happens after that

if i then go back out the "home" page on portainer i have a second environment in the list, but clicking on that doesn't do much other than loading an additional config page.

should note that what i'm trying to do it add the synolody docker to my existing portainer instance running on a pi, so that i can manage both pi and synology docker containers from the 1 portainer instance.
 
if i enter the IP/port of the edge agent container
https://192.168.50.2:9001 then it still doesn't do anything (portainer requires that either http or https be in the server URL, so the image below shows what i'm entering.

Screenshot 2022-08-09 145630.jpg


i then click "create", and it then requires to me to create a new container on the synology with the edge key embedded, but that article doesn't mention doing that, as step 1 has aleady created an edge agent container?

Code:
docker run -d \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /var/lib/docker/volumes:/var/lib/docker/volumes \
  -v /:/host \
  -v portainer_agent_data:/data \
  --restart always \
  -e EDGE=1 \
  -e EDGE_ID=348fd6fa-8054-4809-80c7-74f08d78e0fd \
  -e EDGE_KEY=aHR0cDovLzE5Mi4xNjguNTAuMjo5MDAxfDE5Mi4xNjguNTAuMjo4MDAwfDExOmY1OmQ0OjY5OjRjOjRkOjNlOjg4OmQ2OjI0OmZhOjlkOmQ5OjdhOmQ5OmQwfDEy \
  -e EDGE_INSECURE_POLL=1 \
  --name portainer_edge_agent \
  portainer/agent:2.14.2
 
the synology is not "local" though.
i'm running portainer on a rapsberry pi, along with other containers.

i have a few "intel" based containers running on the NAS and want to be able to control them via portainer running on the NAS.
 
ok well something isn't working as it should then.
not sure if it's related to portainer changing the UI so that "endpoints" is not called "environments", and the set up structure being different.
 
ok well something isn't working as it should then.
not sure if it's related to portainer changing the UI so that "endpoints" is not called "environments", and the set up structure being different.
Screenshot 2022-08-09 at 22.29.26.png


Hmm not sure what to say, but this is how I connect my LAN-accessible Docker hosts. Ofc they are running the portainer/agent image and on the default 9001 port (because it's free I haven't changed it).
 
Ah, you’re using agent not edge agent
That's what I said earlier. Yes, I have no need for the Edge, as all my boxes are either in the same LAN (multiple subnets), or accessible via site-to-site VPN, so again, no need for the edge.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

I am struggling with that since I am only a copy & paste hacker. I have installed netdata on my Synology...
Replies
0
Views
1,941

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top