https://github.com/andyneff/docker-qrencode-google_authenticator
Re-generates a QR code for libpam-google-authenticator
https://github.com/andyneff/docker-qrencode-google_authenticator
Last synced: 5 months ago
JSON representation
Re-generates a QR code for libpam-google-authenticator
- Host: GitHub
- URL: https://github.com/andyneff/docker-qrencode-google_authenticator
- Owner: andyneff
- License: mit
- Created: 2017-10-02T18:34:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T20:05:14.000Z (almost 9 years ago)
- Last Synced: 2025-10-19T14:56:35.935Z (9 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simplest usage: docker-compose
```
docker-compose run --rm qrcode
```
And it will automatically mount your .google_authenticator file into the
container as read-only and print out the QR code associated with it
# Using just docker
```
docker run -it --rm andyneff/docker-qrencode-google_authenticator
```
# Options
- Use a different directory: `-v /root/.google_authenticator:/key/.google_authenticator:ro`
- Can't mount a single file (Windows, etc...): `-v ~:/key:ro`
- Use a custom filename: `-e AUTH_FILE=custom_file`
- Using an otp other than `totp`: `-e OTP_TYPE=totp`
- Adding a custom comment (default is `Replay Code`): `-e COMMENT="Important code"`
- Using an output other than `ANSI`: `-e OUTPUT_FORMAT=UTF8`
- Valid options are: ANSI,ANSI256,ASCII,ASCIIi,UTF8,ANSIUTF8