Setup and Install Portainer on Synology NAS

Currently reading
Setup and Install Portainer on Synology NAS

The Synology Docker UI is nice but lacks some functionality such as Stacks, Templates and other useful things that can make managing your containers a lot easier. Portainer will run seamlessly along side the Synology Docker UI.

First make a folder on your Synology to hold the portainer data and
make sure you change the path /volume1/docker/portainer in the example to match yours.

Continue reading...
 
141
36
NAS
DS1815+
Operating system
  1. Linux
  2. macOS
Mobile operating system
  1. iOS
1 question here. For what do you use also port 8000 in portainer?
 

Geeked

NAS Hosted
Subscriber
137
65
nashosted.com
NAS
DS918+, DS218+(2), RS820+
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. iOS
1 question here. For what do you use also port 8000 in portainer?
From the Portainer website:

With version 1.22.0, Portainer now requires two tcp ports to be exposed; 9000, and 8000. 9000 has historically been the port we served the UI from as well as the Portainer API, but now we have extended the API so that the remote agents can poll for instructions. Port 8000 is a SSH tunnel server and is used to create a secure tunnel between the agent and the Portainer instance.
 

Telos

Subscriber
3,008
964
NAS
DS418play, DS213j, DS3622+, DSM 7.2.4-11091
Thanks for this. I just set it up. Too easy with these instructions... now I deleting all the orphaned images and unused folders.
 

jeyare

Subscriber
2,486
833
NAS
Synology, TrueNAS
Operating system
  1. Linux
  2. Windows
well done @Geeked
you did perfect job with all posted threads!
great and thx for such contribution to share knowledge
 

Geeked

NAS Hosted
Subscriber
137
65
nashosted.com
NAS
DS918+, DS218+(2), RS820+
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. iOS
well done @Geeked
you did perfect job with all posted threads!
great and thx for such contribution to share knowledge
Thanks. I used the ssh method because there are a lot of people who don’t know how to bind the docker sock using the Synology docker UI. Glad I could help!
 

Telos

Subscriber
3,008
964
NAS
DS418play, DS213j, DS3622+, DSM 7.2.4-11091
I stumbled into updating images with this (except the Portainer image, hahaha). So nice. Now if I only understood all the new container configuration options..
 

Geeked

NAS Hosted
Subscriber
137
65
nashosted.com
NAS
DS918+, DS218+(2), RS820+
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. iOS
I stumbled into updating images with this (except the Portainer image, hahaha). So nice. Now if I only understood all the new container configuration options..
For me it's like Photoshop. I've been using it for 20 years yet I still learn new things about it all the time. The best part is you're in a great place where you can learn much faster!
 
1
1
NAS
DS918+
Operating system
  1. Windows
Mobile operating system
  1. Android
The Synology Docker UI is nice but lacks some functionality such as Stacks, Templates and other useful things that can make managing your containers a lot easier. Portainer will run seamlessly along side the Synology Docker UI.

First make a folder on your Synology to hold the portainer data and
make sure you change the path /volume1/docker/portainer in the example to match yours.

Continue reading...
Thank you and all who contributed. This made installing Portainer so simple!
 

Telos

Subscriber
3,008
964
NAS
DS418play, DS213j, DS3622+, DSM 7.2.4-11091
Last edited:
Started getting this...

exmbUy7.png

oeeQUky.png


What's up with that?

So I deleted the container and the config files and started fresh. Looks fine now. What happened?
 

Geeked

NAS Hosted
Subscriber
137
65
nashosted.com
NAS
DS918+, DS218+(2), RS820+
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. iOS
Last edited:
Started getting this...

exmbUy7.png

oeeQUky.png


What's up with that?

So I deleted the container and the config files and started fresh. Looks fine now. What happened?
This usually means your IP changed. Because that’s what the endpoint is. Let me know if you need any further help with it. Or you can change the endpoint back to 0.0.0.0, local host or 127.0.0.1. Maybe even the domain of your nas so you don’t have to use the IP if it changes.
 

Geeked

NAS Hosted
Subscriber
137
65
nashosted.com
NAS
DS918+, DS218+(2), RS820+
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. iOS
I should have explained a bit more. Endpoint isn’t exactly the IP. The endpoint is where Portainer is told your containers are hosted. It should be the IP of your NAS in this case. 👍🏻
 
162
45
NAS
DS918+ (8GB RAM, 4x WD RED 4TB SHR) ; EATON Ellipse PRO 1200FR
Operating system
  1. Windows
Mobile operating system
  1. Android
I should have explained a bit more. Endpoint isn’t exactly the IP. The endpoint is where Portainer is told your containers are hosted. It should be the IP of your NAS in this case. 👍🏻
I'm not a docker expert and maybe there is something I missed but I have to disagree ...
Seems to me that the endpoint is more of a socket on one docker host allowing to point to the containers which are running on that docker host.
In our case it points to /var/run/docker.sock which is mapped from the NAS and no IP is involved here...
The IP is only necessary if you want to be able to click the the links to the ports so that it opens directly in your browser and only if you are on Bridge Network mode.
Or again maybe there is something I missunderstood.

For the record I used to have the same errors everytime I had to stop/start portainer... Not sure if I still have this issue (it's bee a while since the last time I stopped portainer) but when I had these, all I found was destroying the portainer container and recreate it... I think it might be related to an access issue to /var/run/docker.sock but I'm not sure.
 

Geeked

NAS Hosted
Subscriber
137
65
nashosted.com
NAS
DS918+, DS218+(2), RS820+
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. iOS
I'm not a docker expert and maybe there is something I missed but I have to disagree ...
Seems to me that the endpoint is more of a socket on one docker host allowing to point to the containers which are running on that docker host.
In our case it points to /var/run/docker.sock which is mapped from the NAS and no IP is involved here...
The IP is only necessary if you want to be able to click the the links to the ports so that it opens directly in your browser and only if you are on Bridge Network mode.
Or again maybe there is something I missunderstood.

For the record I used to have the same errors everytime I had to stop/start portainer... Not sure if I still have this issue (it's bee a while since the last time I stopped portainer) but when I had these, all I found was destroying the portainer container and recreate it... I think it might be related to an access issue to /var/run/docker.sock but I'm not sure.
That’s a good point. I was referring within the Portainer interface.

I’m curious if this only happens when the Portainer container is stopped and started again manually within the Synology docker UI. I’ll test it later and see if I can pinpoint the issue.
 

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

  • Article
Today I will show you how to setup your Synology to be used as storage on Proxmox. You can use it to store...
Replies
0
Views
3,277
  • Article
Welcome to NASCompares YouTube channel! Check out our next video below. - - - Check out FREE NAS...
Replies
0
Views
714
  • Article
Welcome to NASCompares YouTube channel! Check out our next video below. - - - Check out FREE NAS...
Replies
0
Views
675
  • Article
Welcome to NASCompares YouTube channel! Check out our next video below. - - - Check out FREE NAS...
Replies
0
Views
1,191
  • Article
Welcome to NASCompares YouTube channel! Check out our next video below. - - - Check out FREE NAS...
Replies
0
Views
902
  • Article
Welcome to NASCompares YouTube channel! Check out our next video below. - - - Check out FREE NAS...
Replies
0
Views
1,066
  • Article
Welcome to NASCompares YouTube channel! Check out our next video below. - - - Check out FREE NAS...
Replies
0
Views
1,020

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Top