Skip to content

Instantly share code, notes, and snippets.

log:
level: info
plugins:
# 缓存mosdns-install.hook
- tag: cache
type: cache
args:
size: 1024
lazy_cache_ttl: 86400
@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

@fcicq
fcicq / 431-syncppp-246.patch
Created August 29, 2014 04:29
pppd-2.4.6 syncppp patch, original ver by morfast, put under package/network/services/ppp/patches/
diff -urN ppp-2.4.6-bak/pppd/chap-new.c ppp-2.4.6/pppd/chap-new.c
--- ppp-2.4.6-bak/pppd/chap-new.c 2014-08-27 23:13:25.460914498 +0800
+++ ppp-2.4.6/pppd/chap-new.c 2014-08-29 12:26:19.221812262 +0800
@@ -37,6 +37,8 @@
#include "chap-new.h"
#include "chap-md5.h"
+#include "syncppp.h"
+
#ifdef CHAPMS