Skip to main content

Portainer Edge Agent

For Synolgy NAS you have to change the volume. See below.

edge-agent.jpg

On line three of the command you have to change the volume to match that of Synology.

-v /var/lib/docker/volumes:/var/lib/docker/volumes \

Change that line to

-v /volume1/@docker/volumes:/var/lib/docker/volumes \

Then run the command and viola! You can now connect to your Synology NAS through portainer using the Edge Agent!

Do not run the below command. You have to get it from your Portainer dahboard!

The command will look similar to this.

docker run -d \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /volume1/@docker/volumes:/var/lib/docker/volumes \
-v /:/host \
-v portainer_agent_data:/data \
--restart always \
-e EDGE=1 \
-e EDGE_ID=YOURSECRETID \
-e EDGE_KEY=YOURSECRETKEY \
-e CAP_HOST_MANAGEMENT=1 \
--name portainer_edge_agent \
portainer/agent