Skip to content

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

@kinoute

Description

@kinoute

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions