From b8fac520312e022e75bdf1aa5fbb57727010034c Mon Sep 17 00:00:00 2001 From: Nulo Date: Wed, 7 Sep 2022 18:40:26 -0300 Subject: [PATCH] Hacks: limpiar servidor --- Hacks: limpiar servidor.md | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Hacks: limpiar servidor.md diff --git a/Hacks: limpiar servidor.md b/Hacks: limpiar servidor.md new file mode 100644 index 0000000..db43031 --- /dev/null +++ b/Hacks: limpiar servidor.md @@ -0,0 +1,47 @@ +## Prunear registry + +``` +~root/prune-container-registry.sh +# aka +cd /home/container-registry/ +USER=container-registry HOME=/home/container-registry \ + chpst -u container-registry:container-registry podman exec container-registry registry garbage-collect /etc/docker/registry/config.yml -m +``` + +Gracias [StackOverflow](https://stackoverflow.com/a/48950176) + +## Prunear Docker + +``` +docker system prune --all +## Ojo: elimina volumenes de contenedores apagados +docker system prune --all --volumes +``` + +## Prunear Podman + +``` +podman system prune --all +## Ojo: elimina volumenes de contenedores apagados +podman system prune --all --volumes +``` + +## Limpiar paquetes + +### Paquetes huerfanos + +``` +xbps-remove -o +``` + +### Caché de paquetes no instalado + +``` +xbps-remove -O +``` + +### Nuclear: todo el caché de paquetes + +``` +rm -r /var/cache/xbps/* +```