Skip to content

fix: prune old Docker images and build cache before deploy#19

Merged
SPerekrestova merged 1 commit intomainfrom
fix/docker-prune-on-deploy
Mar 20, 2026
Merged

fix: prune old Docker images and build cache before deploy#19
SPerekrestova merged 1 commit intomainfrom
fix/docker-prune-on-deploy

Conversation

@SPerekrestova
Copy link
Copy Markdown
Owner

Summary

  • Adds docker image prune and docker builder prune (images/cache older than 7 days) to the deploy step, before docker compose build
  • Prevents the "no space left on device" build failure caused by unbounded accumulation of old Docker layers on the remote server

Note

A one-time manual cleanup is still needed on the server before this PR can deploy successfully:

docker system prune -af
docker builder prune -af

Test plan

  • SSH into server and run manual prune to free disk space
  • Merge this PR and verify the deploy job succeeds
  • Confirm df -h / on the server stays healthy after several deploys

🤖 Generated with Claude Code

Prevents "no space left on device" errors by cleaning up images and
build cache older than 7 days on the remote server before each build.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@SPerekrestova SPerekrestova merged commit a5ee733 into main Mar 20, 2026
3 checks passed
@SPerekrestova SPerekrestova deleted the fix/docker-prune-on-deploy branch March 20, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant