Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete mounted folder and its files when container is stopped #60

Open
kinoute opened this issue Nov 22, 2024 · 0 comments
Open

Delete mounted folder and its files when container is stopped #60

kinoute opened this issue Nov 22, 2024 · 0 comments

Comments

@kinoute
Copy link

kinoute commented Nov 22, 2024

Thanks for this wonderful s3fs client. I was wondering what would be the best way to delete automatically the mounted folder once the s3fs container is stopped/killed/removed?

Right now, it seems, in your example, that /mnt/tmp on the host machine keeps the files/folders from the S3 bucket/the container. Is there a nice way to delete this? We are spawning s3fs container through the Docker SDK daemon port, so no SSH. The only volumes that got deleted when a container is killed are real "Docker volumes", not bind ones.

Thanks in advance!

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

No branches or pull requests

1 participant