Forgot your Portainer admin password? Discover ways to use a helpful instrument that will help you reset it with a tutorial from Jack Wallen.
Should you’ve forgotten your Portainer admin password, you gained’t must redeploy the platform as a result of there’s a helpful instrument that will help you reset it. The instrument in query comes by the use of a Docker container, created by Portainer, for this very activity. Let me present you the way it’s accomplished.
The very first thing it’s essential to do is cease the working container. Log into your server, and find the Portainer ID with the command:
docker ps.
It is best to see an inventory for Portainer with an related ID. Cease that container with:
docker cease ID
The place ID is the primary 4 characters of the Portainer ID.
Subsequent, it’s essential to pull the picture designed to reset the password with the command:
docker pull portainer/helper-reset-password
As soon as the picture has pulled, reset the password with the command:
docker run --rm -v portainer_data:/knowledge portainer/helper-reset-password
After the command completes, you’ll see within the output a brand new password to make use of for the admin login. Copy that password and restart the Portainer container with:
docker begin ID
The place ID is the primary 4 digits of the container ID.
Paste the copied password into the Portainer immediate, and also you’re good to go. You possibly can change the password again to no matter you want by clicking your profile icon | My Account after which resetting it as wanted.
Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the newest tech recommendation for enterprise professionals from Jack Wallen.