Skip to content

Instantly share code, notes, and snippets.

View nikatlas's full-sized avatar

Nikos Atlas nikatlas

  • Berlin, Germany
View GitHub Profile

Type-check the crap out of everything

  • Dict is evil

  • State is evil, all forms of it, avoid it like the plague

  • Functional over object-oriented, using then latter sparingly

  • Split and organize code by functionality rather than type

  • Treat all code you write as if you were writing a library to be consumed by millions

  • Use nested exceptions for error handling

@nikatlas
nikatlas / docker-cleanup-resources.md
Created February 27, 2021 11:36 — 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