How to clean up the disk space occupied by docker?

Time:2021-3-5
Delete all closed containers:

docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs docker rm

Delete all dangling images (i.e. images without tags):

docker rmi $(docker images | grep "^<none>" | awk "{print $3}")

Recommended Today

Redis design and implementation 4: Dictionary Dict

In redis, the dictionary is the infrastructure. Redis database data, expiration time and hash type all take the dictionary as the underlying structure. Structure of dictionary Hashtable The implementation code of hash table is as follows:dict.h/dictht The dictionary of redis is implemented in the form of hash table. typedef struct dictht { //Hash table array, […]