Skip to content

Commit fa7f9cb

Browse files
committed
chore: remover imagens dangling (<none>) no prune
Adiciona comando explicito para remover imagens dangling que não são removidas pelo system prune comum
1 parent f62b308 commit fa7f9cb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/deploy-docs-vps.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,15 @@ jobs:
9494
grep -E "^[0-9]+$" | \
9595
xargs -I {} docker rmi archbase-java-docs:{} 2>/dev/null || true
9696
97+
# Remover imagens dangling (<none>)
98+
docker images -f "dangling=true" -q | xargs -r docker rmi -f 2>/dev/null || true
99+
97100
- name: Docker system prune
98101
run: |
99-
# Remover imagens dangling, containers parados e cache de build
102+
# Remover imagens não usadas, containers parados e cache de build
100103
docker image prune -a -f
101104
docker container prune -f
102-
docker system prune -f
105+
docker system prune -a -f
103106
# Exibir uso de disco após limpeza
104107
echo "=== Uso de disco após limpeza ==="
105108
df -h /var/lib/docker

0 commit comments

Comments
 (0)