Hacks: limpiar servidor
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Cat /dev/Nulo 2022-09-07 18:40:26 -03:00
parent 5eba37d5dd
commit b8fac52031
1 changed files with 47 additions and 0 deletions

View File

@ -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/*
```