This repo contains all of the tooling required to run gpg commands include pinentry.
935
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
Content type
Image
Digest
Size
103.1 MB
Last updated
over 5 years ago
docker pull wsams/gnupg