Skip to content

HOWTO Synology DSM7 Portainer

Mikaël ANDRE edited this page Oct 31, 2022 · 4 revisions

HOWTO+Synology+DSM7+Portainer

This how-to aims to install Portainer on Synology NAS

1. File Station

First of all, you need to create a folder under docker shared folder

  • To do it, go to File Station > docker > Click on Create button > Click on Create folder button
    • Name folder: portainer
    • The name of volume where my folders are created is Volume1. It's required to have this information.

2. CLI

Once portainer folder is created, you need to install portainer using CLI command

  • To do it, access to your NAS with SSH access
    • On Terminal window, type the following command
      • docker run -d -p 8000:8000 -p 9443:9443 --restart=unless-stopped --name="portainer" -v /var/run/docker.sock:/var/run/docker.sock -v /volume1/docker/portainer:/data portainer/portainer-ee:latest
        • docker: use docker binary
        • run: The docker run command first creates a writeable container layer over the specified image, and then starts it using the specified command
        • -d: Run container in background and print container ID
        • -p 8000:8000: It exposes 8000 TCP port. It is optional and is only required if you plan to use the Edge compute features with Edge agents
        • -p 9443:9443: Portainer Server will expose the UI over port 9443
        • --restart=unless-stopped:
        • --name="portainer": Name the container, portainer
        • -v /var/run/docker.sock:/var/run/docker.sock: Portainer needs to get access on Docker Socket.
        • -v /volume1/docker/portainer:/data: In order to have persistant data, I mount portainer folder in Portainer container. As I said previously, my volume is Volume1. You need to adapt this.
        • portainer/portainer-ee:latest: Because I want to have all features, I use Business Edition. It's free up to 5 Docker instance. You can go to here to get license key: https://www.portainer.io/take-5
      • Portainer is now installed. Let's go to GUI!

3. GUI Access

In order to access to your Portainer, you need to go to the following URL with your favourite navigator:

  • https://<fqdn_of_your_synology_or_ip-address>:9443
    • You're prompted to defined administrator password
    • After password definition, you need to enter license key and click on Submit button

4. Using Portainer

Please refer to the official documentation to use Portainer > https://docs.portainer.io