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

Make /tmp really temporary #12014

Closed
mingfang opened this issue Apr 2, 2015 · 4 comments
Closed

Make /tmp really temporary #12014

mingfang opened this issue Apr 2, 2015 · 4 comments

Comments

@mingfang
Copy link

mingfang commented Apr 2, 2015

Building images sometimes leaves scratch files in the /tmp directory.
In addition sometimes I need to ADD my project's source code during a build, but I don't want the source to remain after the build.
By making /tmp temporary, then I can do simply ADD src /tmp/src.

@phemmer
Copy link
Contributor

phemmer commented Apr 2, 2015

I think #10310 accomplishes what you're after.

@mingfang
Copy link
Author

mingfang commented Apr 2, 2015

That sounds more sophisticated then what I need.
I just wanted /tmp to behave "normal"; /tmp on Linux do not survive a reboot.
The ability to ADD src there for building is just an additional benefit.

@phemmer
Copy link
Contributor

phemmer commented Apr 2, 2015

On my distro, /tmp does survive a reboot. This would not be "normal" from my perspective.
Also, if /tmp is made to not survive outside the container, this wouldn't work for builds. During builds, each command in the Dockerfile is its own container. Thus the data would be gone on the next command.

@mingfang
Copy link
Author

mingfang commented Apr 8, 2015

Based on the comments here I'm closing this issue.
I also created a new issue to specifically address the ability to avoid source code to end up in a layer, #12169

@mingfang mingfang closed this as completed Apr 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants