Sign inSign up

wsams/gnupg

By wsams

•Updated over 5 years ago

This repo contains all of the tooling required to run gpg commands include pinentry.

Image
0

935

wsams/gnupg repository overview

You may simply run the wsams/gnupg image, or build your own if you don't trust what's published.

# docker build -t wsams/gnupg:latest --rm --pull .
FROM ubuntu:20.04

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && \
    apt-get -y install vim git curl gnupg gnupg-agent

Run the container to execute GnuPG commands:

docker run -it -v $(pwd):/work -v $HOME/.gnupg:/root/.gnupg -w /work --rm wsams/gnupg:latest bash

From inside the container you can now run GnuPG commands. For example to encrypt and decrypt files try,

# gpg --encrypt --sign --armor -r [email protected] my_file_to_encrypt.txt

Decrypt the file,

# gpg --decrypt my_file_to_encrypt.txt.asc

Tag summary

Content type

Image

Digest

Size

103.1 MB

Last updated

over 5 years ago

docker pull wsams/gnupg