HUB
Sign inSign up

travix/gpg

By travix

•Updated almost 7 years ago

Image
0

307

travix/gpg repository overview

⁠GPG Docker Image

⁠USAGE

  • Show version
docker run --rm -it travix/gpg --version
  • List keys
docker run -it -v /path/to/keys/store:/root/.gnupg -e GPG_TTY=/dev/console travix/gpg --list-keys
  • Encrypt with symmetric cipher only. This command asks for a passphrase.
docker run -it -v $(pwd):/gpg -e GPG_TTY=/dev/console travix/gpg --symmetric /gpg/my_file
  • Generate GPG key
docker run -it -v /path/to/keys/store:/root/.gnupg -e GPG_TTY=/dev/console travix/gpg --full-gen-key

If the command complaints about more entropy start the following container in a new session on the same host

docker run --rm --privileged --entrypoint haveged travix/gpg -F
  • Export public GPG key
docker run --rm -it -v /path/to/keys/store:/root/.gnupg -v $(pwd)/keys:/keys -e GPG_TTY=/dev/console travix/gpg --output /keys/my_key.pub --armor --export [email protected]
  • Export private GPG key (KEEP SAFE)
docker run --rm -it -v /path/to/keys/store:/root/.gnupg -v $(pwd)/keys:/keys -e GPG_TTY=/dev/console travix/gpg --output /keys/my_rsa_key --armor --export-secret-key [email protected]
Tag summary
Recent tags
Content type
Image
Digest
Size
11.4 MB
Last updated
almost 7 years ago
docker pull travix/gpg:latest