Created
October 7, 2025 15:13
-
-
Save ScottJWalter/5b3d5ae2215e66b096e54f63de700d85 to your computer and use it in GitHub Desktop.
Reset portainer admin password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # pass the id of the container in on the command line | |
| PORTAINER_CONTAINER_ID=$1 | |
| docker stop $PORTAINER_CONTAINER_ID | |
| docker pull portainer/helper-reset-password | |
| docker run --rm -v portainer_data:/data portainer/helper-reset-password | |
| docker start $PORTAINER_CONTAINER_ID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment