Repository navigation
Add --tmpfs to allow dirs to be mounted in tmpfs - #9586
crosbymichael wants to merge 3 commits into
Conversation
|
omg yes, I do this a lot |
|
Implementation okay for me. Maybe deserves api docs as well. Also, is this possible to write test for this? |
|
Does it copy the image contents at the path like volumes do? (just checking, since it's not exactly obvious from the code) 👼 |
|
@thaJeztah no they are not related at all @tianon no, that is magic |
|
Then this won't ever work for |
|
@tianon yes, I know. It depends the problem is not copying things into a tmpfs mounted |
86d8596 to
81c7365
Compare
There was a problem hiding this comment.
should it be tmpfs (code)?
There was a problem hiding this comment.
I feel like we should at least expand the abbreviation for users who might not be familiar with it.
|
Docs LGTM - though it is sparse, should we define @crosbymichael what about |
|
@SvenDowideit no build for now |
|
LGTM, but agree with Sven that a little more context/background would help a lot. |
|
@fredlf @SvenDowideit what do you suggest? If you don't have a usecase for such a thing we or someone should't be telling you why you should use it. If you need this type of feature you know exactly why you would use it. I don't like having docs that tell people solutions to problems that they don't have. |
|
All I'm looking for is an expansion of the abbrev. and some hint of its possible application in a Docker env. Just citing fairly obscure abbreviations with no explanation makes docs unnecessarily obtuse. Maybe a user has a Docker problem they could solve with tmpfs, but they don't know about it? |
|
"tmpfs is a common name for a temporary file storage facility on many Unix-like operating systems." |
|
Gawd, engineers can be so literal. :-) Not abbreviation, then, term. The |
|
@fredlf ok, well why didn't you say so, that sounds totally reasonable to me ;) I was not trying to be difficult on purpose, sorry for any confusion with what I was saying and what you were trying to tell me. I just didn't want us adding things to the documentation explaining in depth use cases for things such as this because it's much more important as to why one should not use such a feature than what you can do with it. For the users who don't already know use cases for Sorry, I just misunderstood what you were initially asking for. I'll make the updates. |
|
Ha, no worries at all. Communication is hard. |
81c7365 to
c4feae1
Compare
|
@fredlf @SvenDowideit I updated the paragraph in the documentation for tmpfs. Please take a look again. |
|
@crosbymichael LATM (looks awesome to me), thanks for your patience! |
|
Docs LGTM - merci - this version is quite unambiguous to me :) |
c4feae1 to
70da045
Compare
Signed-off-by: Michael Crosby <[email protected]>
Signed-off-by: Michael Crosby <[email protected]>
Signed-off-by: Michael Crosby <[email protected]>
70da045 to
328eb0f
Compare
|
@LK4D4 I added an integration test for tmpfs mounts |
|
@crosbymichael Thanks! |
There was a problem hiding this comment.
Shouldn't this be in 1.17? Also description in hostconfig section is needed. Also I remember that somewhere should be "what's new" section.
|
LGTM minus the docs comment above about the version :) |
|
I'll reopen when this is ready, going to reconsider the volume proposal and copy functionality |
|
@crosbymichael Any thoughts on the next steps here? Lots of proposals flying around: |
By using
docker run --tmpfs /tmpdocker will mount the dir/tmpin tmpfs for the container.