Decrypt with gpg from inside a docker container

不想你离开。 提交于 2019-12-22 11:20:01

问题


I have an encrypted file with gpg that I want to decrypt from inside a docker container. gpg is not found on the container, how would I add it.


回答1:


Depending on your base image (used by your container), you would need to add to your Dockerfile
(or to make one, starting with FROM <the image used by your container>) with:

RUN apt-get update && apt-get install gnupg

(as in this docker-vault-init Dockerfile)

Then check out "Adding GPG key inside docker container causes “no valid OpenPGP data found”".
This could be needed:

RUN apt-get install -y ca-certificates wget


来源:https://stackoverflow.com/questions/37519303/decrypt-with-gpg-from-inside-a-docker-container

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!