-
Notifications
You must be signed in to change notification settings - Fork 617
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
Request: Support for tmpfs parameter when launching containers #469
Comments
While the use of tmpfs mounts for secrets is also interesting, another use case for this feature would be to allow containers running under ECS to more easily run in read-only mode; e.g. by mounting tmpfs filesystems on |
This would be highly appreciated! I would like to run some containers read only and use --tmpfs to give them some read/write space they can use (it is ephermal data anyways). This would substantially lower the pressure on EBS io. +1 |
+1 |
+1 I would also like to run read only and need this to move forward with that |
+1, nice to have |
Running containers with a read-only root filesystem is now part of the CIS benchmark, and thus it won't be long before organizations start insisting on having this Docker functionality when running on ECS. It's possible run read-only now, but without having tmpfs for scratch space, it's hard to use effectively. |
+1 such a simple and effective security option to use read-only with tmpfs |
+1 |
2 similar comments
+1 |
+1 |
This would be useful for us as well |
A specific use case for this is the storage of the Varnish VSM file, where Varnish is very sensitive to slowdowns in writes to this temporary file. Mounting this directory into tmpfs would insulate it against EBS latencies. |
In some cases, it's sufficient with using /dev/shm (which is tmpfs and has 64M by default). |
@piotrbulinski I looked at that, but unfortunately my Varnish VSM file is about 80MB. |
I don't like being just another +1 but this is essential for running readonly containers |
+1... @jhmartin, in the meantime you can increase the size of |
+1 to being able to use tmpfs in ecs and elasticbeanstalk |
+1 |
1 similar comment
+1 |
+1 |
3 similar comments
+1 |
+1 |
+1 |
Actually, My use case is a per-container RAM disk for a sqlite database when running https://github.com/mlsecproject/gglsbl-rest in my ECS cluster, for performance reasons. |
+1 |
2 similar comments
+1 |
+1 |
Would love to see this in ECS since it is supported in docker_containers |
A proposal for the implementation of tmpfs is available in #1149. |
Hello everyone, we announced support for Closing this issue for now. Please let us know if you have any follow up comments/questions regarding this. |
I would like to comment that the docs should be updated to state that the unit for shmsize/tmpfs.Size is MB. Edit: Of course I also want to thank you for adding this feature! |
Wonderful, thanks! |
There is now support in the docker engine for a tmpfs flag that mounts a tmpfs file system into the running container. I believe this was added with docker v1.10.0. I would very much like to use this as a mechanism to store config secrets (such as PGP keys, DB passwords, etc...) I do not see a way currently to pass this option in to the ECS TaskDefinition. The syntax for the docker run command with this parameter looks like this:
The text was updated successfully, but these errors were encountered: