2022-02-11 12:26:16 +00:00
|
|
|
#!/bin/sh -x
|
2022-02-11 12:37:23 +00:00
|
|
|
# https://osmocom.org/projects/osmocom-servers/wiki/Docker_cache_clean_up
|
2018-04-06 07:31:39 +00:00
|
|
|
|
2022-12-09 09:02:37 +00:00
|
|
|
# delete all containers where we forgot to use --rm with docker run,
|
|
|
|
# older than 24 hours
|
|
|
|
docker container prune --filter "until=24h" -f
|
2022-02-11 12:09:38 +00:00
|
|
|
|
2022-12-09 09:02:37 +00:00
|
|
|
# remove unused networks older than 24 hours
|
|
|
|
docker network prune --filter "until=24h" -f
|