Synology: How to Reset Portainer Password

Synology How to Reset Portainer Password

Sometimes it can happen to even the most prepared of users to lose their Portainer password. If this happens, if you do not have a Backup of Portainer, the only solution left is to reset your current Portainer password. In this step by step guide I will show you how to reset the password in Portainer and get access again.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Open Docker or Container Manager. On the left sidebar click Container. Right click on your Portainer instance, then click Stop. Follow the instructions in the image below.

Synology Reset Portainer Password STEP 1

  • STEP 3

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

Synology User Defined Script

  • STEP 4

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

    1. General: In the Task field type in ā€œPortainer Password Resetā€œ. 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-reset \
-v /volume1/docker/portainer:/data \
portainer/helper-reset-password

Synology Reset Portainer Password STEP 2

  • STEP 5

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

Synology Reset Portainer Password STEP 3

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 6

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

Synology Reset Portainer Password STEP 4

  • STEP 7

šŸŸ¢Please Support My work by Making a Donation. Almost 99,9% of the people that install something using my guidesĀ forget to support my work, or justĀ ignoreĀ STEP 1. Iā€™ve been very honest about this aspect of my work since the beginning: I donā€™t run any ADS, I donā€™t require subscriptions, paid or otherwise, I donā€™t collect IPs, emails, and I donā€™t have any referral links from Amazon or other merchants. I also donā€™t have any POP-UPs or COOKIES. I have repeatedly been told over the years how much I have contributed to the community. Itā€™s something I love doing and have been honest about my passion since the beginning. But I also Need The Community to Support me Back to be able to continue doing this work.

  • STEP 8

Open Container Manager or Docker. On the left sidebar click Container. Select your portainer-reset instance, then click the Details tab. Follow the instructions in the image below.

Synology Reset Portainer Password STEP 5

  • STEP 9

Click the Log tab, then Export. Click HTML. Follow the instructions in the image below.

Synology Reset Portainer Password STEP 6

  • STEP 10

From the HTML file that you have previously downloaded at STEP 9, copy your new auto-generated Portainer password and your username. Follow the instructions in the image below.

Synology Reset Portainer Password STEP 7

  • STEP 11

Open Docker or Container Manager. On the left sidebar click Container. Right click on your Portainer instance, then click Start. Follow the instructions in the image below.

Synology Reset Portainer Password STEP 8

  • STEP 12

Access your Portainer instance at YourNASIP:9000 Type in your own Username and your auto-generated Password that you have previously downloaded at STEP 10. Click Login. Follow the instructions in the image below.

Synology Reset Portainer Password STEP 9

  • STEP 13

At the top right of the page, click on your username then My account. Follow the instructions in the image below.

Synology Reset Portainer Password STEP 10

  • STEP 14

Change your current auto-generated password with your own password, then click Update password. Follow the instructions in the image below.

Synology Reset Portainer Password STEP 11

  • STEP 15

Open Container Manager or Docker. On the left sidebar click Container. Right click on your portainer-reset instance, then click Delete.

  • STEP 16

Enjoy your Portainer!

This post was updated on Thursday / February 20th, 2025 at 5:27 PM