Skip to content

Conversation

@StealthyCoder
Copy link
Member

I think this is the correct place to add the --rm option to clean up after the docker containers we run have executed.

@StealthyCoder StealthyCoder requested a review from doanac April 11, 2025 19:56
)

cmd = ["docker", "run"]
cmd = ["docker", "run", "--rm"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with this, I think we can remove the docker_clean logic

Also - the commit message should explain the why and subject can drop the improvement line.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improved the commit message and the title. I think we can remove the docker_clean logic too, as what I have seen is that the other directories inside docker did not contribute much to the disk space used.

@StealthyCoder StealthyCoder changed the title improvement(handlers): cleanup after container has run feat(handlers): cleanup after container has run Apr 11, 2025
This simple addition to running `docker` will make it so the containers
upon exit will clean up files left on the disk. In particular the files
in the `overlay2` directory. This will help improve robustness
concerning workers getting jobs and running out of disk space.

This compliments the efforts within this PR foundriesio#143.

Signed-off-by: Eric Bode <eric.bode@foundries.io>
@StealthyCoder StealthyCoder changed the title feat(handlers): cleanup after container has run fix(handlers): cleanup after container has run Apr 11, 2025
@StealthyCoder StealthyCoder force-pushed the improvement/docker_run_rm branch from 26d9def to 5403468 Compare April 11, 2025 20:28
@StealthyCoder StealthyCoder requested a review from doanac April 29, 2025 14:38
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.

2 participants