Skip to content

adamancini/docker-dumpsecrets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-dumpsecrets

simple container to dump secrets data from swarm

usage

git clone https://github.com/adamancini/docker-dumpsecrets.git && cd docker-dumpsecrets

docker build -t support/dumpsecrets .

./dump_all_secrets.sh

dump_all_secrets.sh

Iterates over every secret name returned by docker secrets ls and creates a dummy alpine service with each --secret flag populated.
Then it simply copies the contents of the mounted secrets to /secrets in the container filesystem, where we have mounted a named volume.

sudo su - && cd /var/lib/docker/volumes/dumpsecrets/_data/ and copy secrets data to destination

About

simple container to dump secrets data from swarm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published