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

Add support for tmpfs mounts on Docker runtime #203

Closed
runabol opened this issue Oct 1, 2023 · 1 comment
Closed

Add support for tmpfs mounts on Docker runtime #203

runabol opened this issue Oct 1, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@runabol
Copy link
Owner

runabol commented Oct 1, 2023

As opposed to volumes and bind mounts, a tmpfs mount is temporary, and only persisted in the host memory. When the container stops, the tmpfs mount is removed, and files written there won't be persisted.

This is useful to temporarily store sensitive files that you don't want to persist in either the host or the container writable layer.

Limitations:

  • Unlike volumes and bind mounts, you can't share tmpfs mounts between containers.
  • This functionality is only available if you're running Docker on Linux.

The goal of this issue is to add support for a tmpfs mount.

Rough outline of the implementation:

  1. Add an tmpfs.go file to the docker packge.
  2. Implement the Mounter interface.
  3. Register the new mounter implementation when wiring in the Docker runtime.
  4. Add tests.
@runabol runabol added enhancement New feature or request good first issue Good for newcomers labels Oct 1, 2023
@runabol
Copy link
Owner Author

runabol commented Oct 6, 2023

#211

@runabol runabol closed this as completed Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant