-
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
tmpfs-mode not implemented in Compose file syntax #1285
Comments
This still appears to be an issue in compose file version 3.7 (unless the documentation just hasn't been updated?) |
still no fix for that. when most of recommendations are saying to us to never run any container as root this is clearly a NO GO for any container needing a tmpfs. |
I just found out this issue and started to crumple...
Of course it should be documented somewhere in the documentation of tmpfs !!!!!! |
Yes sure. But this is so hacky where a simple introduction of a new syntax
in compose file would make it faisible.
There is IMHO no technical deadlock here, since this is feasible with the
docker run command itself so it might be simple in compose (didn't look at
it deeply though).
BTW i can imagine that you instructions @serat will lead to some security
issues with so open rights on the run folder.
Cheers
Le ven. 17 avr. 2020 à 12:20, serut <notifications@github.com> a écrit :
… I just found out this issue and started to crumple...
But in fact I succeeded to launch the official nginx image with fake user
+ read only.
Indeed, you cannot set the uid / gid when setting the tmpfs volume, but in
fact the volume is created with the same rights than the existing folder in
the container. So I just needed to add this in my Dockerfile :
# Allow non root user to launch nginx
RUN chown root:root /var/cache/nginx \
&& chmod 0777 /var/cache/nginx \
&& chown root:root /run \
&& chmod 0777 /run
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1285 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVGM5OM4OMJLL7GPZEOOMDRNAUPNANCNFSM4FPJW4EA>
.
|
Salut Fred, |
tmpfs size can be set by Compose syntax using the long syntax https://github.com/compose-spec/compose-spec/blob/master/spec.md#long-syntax-4 |
@ndeloof you can reopen this ticket. We're here speaking about the mode (0777...), not the size ! |
Right, but compose file syntax should be discussed under https://github.com/compose-spec/compose-spec |
We can't transfert issues between |
for people stumbling here, this is the current spec link ;) https://github.com/compose-spec/compose-spec/blob/master/spec.md#volumes |
Description
This is very closely related to this issue: #698 and PR: #808 .
Although the above two links talk about tmpfs-mode, only tmpfs-size was included in the Compose file syntax.
Creating this issue here so the maintainers do not lose sight of the
tmpfs-mode
option.P.S. - Is there any quick workaround / alternative way of setting the mode for tmpfs in the compose file? Or is it not possible at all? (Compose file version 3.6)
The text was updated successfully, but these errors were encountered: