mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #15763 from tianon/dind-tmp
Update dind "/tmp" mounting to be optional
This commit is contained in:
commit
5fd15da7da
1 changed files with 4 additions and 2 deletions
|
@ -105,8 +105,10 @@ if ! grep -qw devices /proc/1/cgroup; then
|
||||||
echo >&2 'WARNING: it looks like the "devices" cgroup is not mounted.'
|
echo >&2 'WARNING: it looks like the "devices" cgroup is not mounted.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Mount /tmp
|
# Mount /tmp (conditionally)
|
||||||
mount -t tmpfs none /tmp
|
if ! mountpoint -q /tmp; then
|
||||||
|
mount -t tmpfs none /tmp
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue