Skip to content

Instantly share code, notes, and snippets.

View Jaskaranbir's full-sized avatar
😁
Coding fun stuff....

Jaskaranbir Dhillon Jaskaranbir

😁
Coding fun stuff....
View GitHub Profile
@Jaskaranbir
Jaskaranbir / ClassLoaderLeakExample.java
Created November 4, 2018 03:58 — forked from dpryden/ClassLoaderLeakExample.java
Example of a ClassLoader leak in Java
import java.io.IOException;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
/**
* Example demonstrating a ClassLoader leak.
*
* <p>To see it in action, copy this file to a temp directory somewhere,
@Jaskaranbir
Jaskaranbir / docker-cleanup-resources.md
Created July 27, 2017 00:41 — 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