• Stars
    star
    109
  • Rank 319,077 (Top 7 %)
  • Language
    Go
  • Created over 4 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A container helper used to reset the administrator password of a Portainer instance

Portainer reset password helper

This helper container is designed to update the password of the original administrator account of a Portainer instance.

Note: it is designed to reset the password associated to the original administrator account (UserID == 1). If the account is removed, the helper will try to create a user named admin with UserID = 1. If the name admin is already taken, the helper will try to use "admin-" + a random string.

Usage

Portainer running as a container

# stop the existing Portainer container
docker container stop portainer

# run the helper using the same bind-mount/volume for the data volume
docker run --rm -v portainer_data:/data portainer/helper-reset-password
2020/06/04 00:13:58 Password succesfully updated for user: admin
2020/06/04 00:13:58 Use the following password to login: &_4#\3^5V8vLTd)E"NWiJBs26G*9HPl1

# restart portainer and use the password above to login
docker container start portainer

Portainer running as a stack/service

# scale down to zero the existing Portainer service
docker service scale portainer_portainer=0

# run the helper using the same bind-mount/volume for the data volume
docker run --rm -v portainer_portainer_data:/data portainer/helper-reset-password
2020/06/04 00:13:58 Password succesfully updated for user: admin
2020/06/04 00:13:58 Use the following password to login: &_4#\3^5V8vLTd)E"NWiJBs26G*9HPl1

# scale back to one the existing Portainer service and use the password above to login
docker service scale portainer_portainer=1

More Repositories

1

portainer

Making Docker and Kubernetes management easy.
TypeScript
30,608
star
2

portainer-compose

Compose setup for Portainer
605
star
3

templates

App Templates used by Portainer
Makefile
320
star
4

agent

The Portainer agent
Go
315
star
5

portainer-docs

Portainer documentation
250
star
6

portainer-k8s

Deploy Portainer inside k8s
Shell
110
star
7

k8s

How to deploy Portainer inside a Kubernetes environment.
Shell
87
star
8

k2d

Kubernetes to Docker translator
Go
74
star
9

docker-images

Images provided by Portainer.io
Dockerfile
29
star
10

awesome-portainer

A curated list of Portainer resources, tutorials, videos
18
star
11

kubernetes-beta

Feedback for the BETA version of Portainer with Kubernetes support
18
star
12

portainer-updater

A tool used to automatically update Portainer software
Go
11
star
13

dev-toolkit

All you need to develop the Portainer software
Dockerfile
9
star
14

docker-manifest

Manifests list for a multi-arch Docker image
9
star
15

libhttp

HTTP library providing useful methods when working with net/http and gorilla/mux
Go
6
star
16

docker-compose-wrapper

Go
6
star
17

dev-tools

Portainer developer tools
Shell
6
star
18

helper-templates

A container helper used to operate on a Portainer template file
Go
5
star
19

roadmap

This is the public roadmap for Portainer CE and Portainer Business
4
star
20

authenticator

Docker CLI helper to authenticate against Portainer
Go
4
star
21

compose-unpacker

A tool used to deploy Compose stacks from Git on remote environments
Go
4
star
22

libhelm

A helm wrapper for portainer
Go
3
star
23

examples

Artefacts for Portainer related examples
2
star
24

katacoda-labs

Scenarios for Portainer @ Katacoda
Shell
2
star
25

libcrypto

Crypto library
Go
2
star
26

docker-extension

Portainer extension for Docker Desktop
Makefile
2
star
27

agent-public

Agent release notes
2
star
28

kubernetes-roadmap

Roadmap for Kubernetes support inside Portainer
1
star
29

portainer-charm

Portainer Juju Charm for Charmed Kubernetes https://ubuntu.com/kubernetes/
Python
1
star
30

agent-checklist

Make sure your environment is properly setup to deploy Portainer+Agent
Shell
1
star
31

k2d.io

The official website of k2d.io!
JavaScript
1
star
32

docker-compose-linux-amd64-static-binary

Build docker-compose statically for linux amd64
Dockerfile
1
star
33

portainer-agent-charm

Python
1
star
34

test-public-repo

HTML
1
star
35

platform

Smarty
1
star