Synology: 30 Second Portainer Install Using Task Scheduler & Docker

Synology 30 Second Portainer Install Using Task Scheduler & Docker

Do you want to install Portainer via Docker without a terminal? Are you tired of complicated guides? Do you want something quick and easy? Well today I will teach you how to install the latest Portainer 2.21.4 CE on your Synology NAS in less than 30 seconds directly through the Task Scheduler option. It’ll be over in a couple of seconds and it’s essentially child’s play. Portainer is a lightweight management UI which allows you to easily manage your Docker host or Swarm cluster. Portainer is meant to be as simple to deploy as it is to use. It consists of a single container that can run on any Docker engine (Docker for Linux, Docker for Synology DSM and Docker for Windows are all supported). Portainer allows you to manage your Docker stacks, containers, images, volumes, networks and more! It is compatible with the standalone Docker engine and with Docker Swarm.

šŸ’”Note: This guide works perfectly with the latest Portainer CE 2.21.4Ā release.

šŸ’”Note: Check out my new guide on how to Install Portainer on Your UGREEN NAS.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Container Manager via Synology ā€œPackage Centerā€. If you run an older DSM version (under 7.2), search for Docker instead of Container Manager.

Download Container Manager Synology Docker

  • STEP 3

Go toĀ File Station and open the docker folder. Inside the docker folder, create a new folder and name it portainer. Follow the instructions in the image below.
Note: Be careful to use only lowercase, not uppercase letters.

Portainer Install Synology NAS Set up 1 2023

  • STEP 4

Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the image below.

Synology User Defined Script

  • STEP 5

Once you click on User-defined script, a new window will open. Follow the instructions below:

    1. General: In the Task field type in ā€œInstall Portainerā€œ. Uncheck the ā€œEnabledā€ option. Select rootĀ User.
    2. Schedule: SelectĀ Run on the following dateĀ then select ā€œDo not repeatā€œ.
    3. Task Settings: Check ā€œSend run details by emailā€œ, add your email, then copy paste the code below in the Run command area. After that, click OK.
docker run -d --name=portainer \
-p 8000:8000 \
-p 9000:9000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /volume1/docker/portainer:/data \
--restart=always \
portainer/portainer-ce

Portainer Synology NAS Set up 3 new 2023

  • STEP 6

After you click OK onĀ STEP 5, a new warning pop up window will open. Click OK.

Portainer Synology NAS Set up 4

After you click OK, type in your DSM Password then click Submit. Follow the instructions in the image below.

Synology Task Scheduler Confirm Admin Password

  • STEP 7

After you click Submit at STEP 6, select your ā€œInstall Portainerā€ Task, then click the ā€œRunā€ tab. You will be asked to run Install Portainer ā€“ click OK. Follow the instructions in the image below.

Portainer Synology NAS Set up 5 new 2025

  • STEP 8

Go back toĀ STEP 1Ā or you will deal with karma šŸ™‚

  • STEP 9

Open your browser and type inĀ http://Synology-ip-address:9000 Follow the instructions in the image below. Choose aĀ Username and a strong Password, confirm the password, then press Create user.

Portainer Install Synology NAS Set up 1

  • STEP 10

Click Get Started (proceed using the local environment in which Portainer is running). Follow the instructions in the image below.

Portainer Install Synology NAS Set up 2 new 2023

  • STEP 11

On the right in the Environments are, click on the little pencil. Follow the instructions in the image below.

Portainer Install Synology NAS Set up 3 new 2023

  • STEP 12

After you click on the little pencil a new page will open. On the Public IP area type in your own NAS Local IP which, in my case, is 192.168.1.18 then click UpdateĀ environment. Follow the instructions in the image below.

Portainer Install Synology NAS Set up 4 new 2023

  • STEP 13

If everything goes right, you will see this message at the top right of your screen: “Environment updated“.

Portainer Install Synology NAS Set up 5 new 2023

Your Portainer Dashboard at a glance!

Portainer Install Synology NAS Set up 6 new 2023

  • STEP 14

On the left Portainer sidebar, click on Registries then Click + Add registry. Follow the instructions in the image below.

Portainer Install Synology NAS Set up 7 new 2023

  • STEP 15

Click on Custom registry. In the Name field area type in GHCR and in the Registry URL area type in ghcr.io
Click Add registry to save the settings. Follow the instructions in the image below.
Note: The ghcr.io registry is mandatory if you want to update Docker containers via Portainer that are served via ghcr.io registry.

Portainer Install Synology NAS Set up 8 new 2023

Click on Custom registry. In the Name field area type in CODEBERG and in the Registry URL area type in codeberg.org
Click Add registry to save the settings. Follow the instructions in the image below.
Note: The codeberg.org registry is mandatory if you want to update Docker containers via Portainer that are served via codeberg.org registry.

Portainer Install Synology NAS Codeberg Registry 1

Click on Custom registry. In the Name field area type in Quay.io and in the Registry URL area type in quay.io
Click Add registry to save the settings. Follow the instructions in the image below.
Note: The quay.io registry is mandatory if you want to update Docker containers via Portainer that are served via quay.io registry.

1 Portainer Synology Quay.io Registry

  • STEP 16

If everything goes right, your Registries area will look like this:

Portainer Synology Registry Full Setup

  • STEP 17

Follow the steps below to remove the blue attention seeker “Upgrade to Business Edition” button.

Portainer Install Synology NAS Set up 10 new 2023

  • STEP 18

Download (click on the blue link below) the adBlocker extension for Chrome. Click to Add to Chrome. Follow the instructions in the image below.

Download adBlocker Extension For Chrome

Portainer Install Synology NAS Set up 11 2024

  • STEP 19

Click Add extension. Follow the instructions in the image below.

Portainer Install Synology NAS Set up 12 2024

  • STEP 20

Go Back to your Portainer page. Right click on the blue “Upgrade to Business Edition” button. Select adBlocker then Block this ad. Follow the instructions in the image below.

Portainer Install Synology NAS Set up 11 new 2023

  • STEP 21

Click Looks good. Follow the instructions in the image below.

Portainer Install Synology NAS Set up 14 2023

  • STEP 22

Click Block it! Follow the instructions in the image below.

Portainer Install Synology NAS Set up 15 2023

Enjoy your Portainer without the blue attention seeker “Upgrade to Business Edition” button.

Portainer Install Synology NAS Set up 16 2023

Enjoy Portainer!

šŸ†˜TROUBLESHOOTING

If you encounter issues by using this container, make sure to check out the Common Docker issuesĀ article.

Note: If you want to run Portainer over HTTPS, check out my article How to Run Docker Containers Over HTTPS. In order to make Portainer work via HTTPS, it’s mandatory to activate WebSocket.

Note: How to Backup Portainer.
Note: Find outĀ how to update the Portainer containerĀ with the latest image.
Note: How to Reset Portainer Password.
Note: How to Back Up Docker Containers on your Synology NAS.
Note: How to Change Portainer Logo With Your Own Logo.
Note: How to Activate Dark Mode in Portainer.
Note: Can I run Docker on my Synology NAS?Ā See the supported models.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.
Note: CE stands for Community Edition.

This post was updated on Friday / October 25th, 2024 at 9:09 AM