TroubleChute Logo
DOCKER

Reset Docker Password


Published: Jan 12, 2023
Last Edit: Jun 8, 2023
Docker Portainer
171 Words, 1 Minute.

Watch the video:


Why?

Everyone forgets things. Maybe it wasn’t saved, or maybe the computer lost it ;)

There are many reasons to do this. Just make sure you have permission to add and run docker containers on the host system, whether it’s a VPS, or your own computer, or something else, and you should be able to get it in no time.

Reset Portainer password

The process is simple and streamlined. All you need are the below commands.

Because you can run them one after the other, I have put them all in one block.

1
2
3
docker container stop portainer
docker run --rm -v portainer_data:/data portainer/helper-reset-password
docker container start portainer

After running the above commands to take Portainer offline temporarily (Your Docker containers will still run), it will reset the password, likely for the root user, and return it in the console before starting again.

It will be something long and random, and right above it, you’ll see the username as well, whether it’s root, admin, or something else.

Super simple.

TroubleChute © Wesley Pyburn (TroubleChute)
Support Me Privacy Policy Cookies Policy Terms of Service Change privacy settings Contact