Hacks: limpiar servidor
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
5eba37d5dd
commit
b8fac52031
1 changed files with 47 additions and 0 deletions
47
Hacks: limpiar servidor.md
Normal file
47
Hacks: limpiar servidor.md
Normal 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/*
|
||||||
|
```
|
Reference in a new issue