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.14.0 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.14.0 release.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Docker via Synology “Package Center”.

Install Docker Synology DSM 7

  • 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 images below.
Note: Be careful to use only lowercase, not uppercase letters.

Portainer Synology NAS Set up 1

  • STEP 4

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

Portainer Synology NAS Set up 2

  • 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

  • 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

  • STEP 7

After you click OK on STEP 6, select your “Install Portainer” Task then click the “Run” tab. You will be asked to run Install Portainer – click Yes. Follow the instructions in the image below.

Portainer Synology NAS Set up 5

  • 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 an Username and a strong Password, confirm the password then press Create user.

6 Portainer Synology NAS New Set up 1 Admin

  • STEP 10

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

7 Portainer Synology NAS New Set up

  • STEP 11

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

8 Portainer Synology NAS New Set up

  • STEP 12

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

9 Portainer Synology NAS New Set up

  • STEP 13

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

10 Portainer Synology NAS New Set up

Enjoy Portainer!

Note: If you want to run Portainer over HTTPS, check out my article How to Run Docker Containers Over HTTPS.

Note: Find out how to update the Portainer container with the latest image.
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: Some Docker Containers Need WebSocket.
Note: CE stands for Community Edition.

This post was updated on Tuesday / June 28th, 2022 at 12:38 PM