mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
b4813f2841
/tmp is often a tmpfs file system and large temporary files could cause docker commands to fail. Also using /tmp potentially allows users on the system to get access to content, or even attack the content. Moving the tmpdir to /var/lib/container/tmp will protect the data. Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan) Conflicts: docker/docker.go
12 lines
239 B
Go
12 lines
239 B
Go
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd
|
|
|
|
package utils
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// TempDir returns the default directory to use for temporary files.
|
|
func TempDir(rootdir string) (string error) {
|
|
return os.TempDir(), nil
|
|
}
|