Skip to content

Instantly share code, notes, and snippets.

View rdig's full-sized avatar

Raul rdig

View GitHub Profile

Keybase proof

I hereby claim:

  • I am rdig on github.
  • I am rdig (https://keybase.io/rdig) on keybase.
  • I have a public key whose fingerprint is 78A8 9523 197B A85D E850 DCCD BE5D BE83 0D2C 30AD

To claim this, I am signing this object:

@rdig
rdig / docker-cleanup-resources.md
Created June 15, 2019 19:45 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Gotten from the RedHat GPG migration manual

Backup the public and secret keyrings and trust database

## Export all public keys

gpg -a --export >mypubkeys.asc