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.5.1 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.
Portainer CE 2.5.1 release.This guide works perfectly with the latest
Install Docker via Synology “Package Center”.
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 enter only lowercase, not uppercase letters.
Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the images below.
Once you click on User-defined script a new window will open. Follow the instructions below:
- General: In the Task field type in “Install Portainer“. Uncheck “Enabled” option. Select root User.
- Schedule: Select Run on the following date then select “Do not repeat“.
- 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
After you click OK on STEP 5 a new warning pop up window will open. Click OK.
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.
Go back to STEP 1 or you will deal with karma 🙂
Open your browser and type in http://Synology-ip-address:9000/ Follow the instructions in the image below. Choose an Username and Password, confirm the password then press Create user. Remember to uncheck “Allow collection of anonymous statistics.”
Select Docker (Manage the local Docker environment) then press the Connect button. Follow the instructions in the image below.
Your Portainer administration page will look like this:
In the left sidebar, click on Endpoints then select local and click on it. Follow the instructions in the image below.
The local configuration will open. On the Public IP area type in your NAS local IP which, in my case, is 192.168.0.182 then click Update endpoint. Follow the instructions in the image below.
If everything goes right, you will see this message at the top right of your screen: “Endpoint updated local”.
Note: Find out how to update Portainer container with the latest image.
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: CE stands for Community Edition.
This post was updated on Monday / June 21st, 2021 at 8:38 AM