Skip to content

Instantly share code, notes, and snippets.

at, /^ATU[A-Z0-9]{9,9}$/,
be, /^BE[0-9]{10,10}$/,
bg, /^BG[0-9]{9,10}$/,
cy, /^CY[A-Z0-9]{9,9}$/,
cz, /^CZ[0-9]{8,10}$/,
de, /^DE[0-9]{9,9}$/,
dk, /^DK[0-9]{8,8}$/,
ee, /^EE[0-9]{9,9}$/,
el, /^EL[0-9]{9,9}$/,
es, /^ES[A-Z0-9]{9,9}$/,
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
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