-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Support tmpfs-size
and tmpfs-mode
in compose-file
#698
Comments
Thanks for opening this! /cc @vdemeester @dnephin |
What are you peeps thinking the docker-compose syntax should look like? Something like this?
|
I think it should match the existing types (bind, volume): volumes:
- type: tmpfs
target: /tmp
tmpfs:
size: 10000
|
Sounds like it's been fixed by #808 |
Looks |
@ypresto could you open a new issue, so that we don't loose sight? |
Actually the supported mount options are the same as the Linux default mount flags. If you do not specify any options, the systems uses the following options: This actually does what it's supposed to: version: "2.4"
services:
my_app:
image: my_app
read_only: true
restart: always
tmpfs:
- /run:mode=770,size=1k,uid=200,gid=10000 It'll set /run mode to 770 with a 1k size limit and owned by uid 200 and gid 10000 |
Is this configuration valid? |
for me it does not work, or at least is not using /dev/shm this works I can validate it looking with this command "df -h" looking to the increase space used by shm
Is there a command or something to see how tmpfs is filling? |
@thaJeztah suggests to use a
--mount
option as an workaround of--shm-size
like that:But I can't find anything about how to set the
tmpfs-size
in the doc about volume-long-syntax. I think this feature should be supported.The text was updated successfully, but these errors were encountered: