-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Tar up contents of child directory onto tmpfs if mounted over #13212
Conversation
I believe that this pull request is causing issues similar to the following when creating containers from images which do not have a /tmp directory (like an image created using
|
@lheinlen-os Is that on a Fedora or RHEL system? This patch would not cause that but using the patch for mounting a tmpfs on /tmp might. |
@lheinlen-os I added a check to make sure fullDest exists before running the tar commands which should prevent the failure you are seeing |
@rhatdan Excellent! Thank you! |
I am reworking these patches to only happen when you run in systemd mode. BTW. |
#13525 |
This patch will use the new PreMount and PostMount hooks to "tar" up the contents of the base image on top of tmpfs mount points. We want to add support for /run and /tmp on tmpfs and Michael Chrosby idea to add --tmpfs PATH would require a patch like this. Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
This patch will allow users to setup tmpfs mounts on top of any directory. One of the big benefits of this would be to allow --read-only to work when an application needs to write to /run or /tmp. Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
I have incorporated this pull request into #13587 |
This patch will use the new PreMount and PostMount hooks to "tar"
up the contents of the base image on top of tmpfs mount points.
We want to add support for /run and /tmp on tmpfs and Michael Chrosby idea to
add --tmpfs PATH would require a patch like this.
Docker-DCO-1.1-Signed-off-by: Dan Walsh dwalsh@redhat.com (github: rhatdan)