aboutsummaryrefslogtreecommitdiff
path: root/libpod/runtime_ctr.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-12-24 08:43:10 -0800
committerGitHub <noreply@github.com>2018-12-24 08:43:10 -0800
commitc50332d057a148f6ffa7879e99e969cf97af9878 (patch)
treef43b0228054882a212b9493f4fca9657918ab88d /libpod/runtime_ctr.go
parentbbfe7341b7c03cba4a362ec1e1198ff3eb90d962 (diff)
parentdf99522c6794cbf9ea77c4c314dadf9e9b5b2a54 (diff)
downloadpodman-c50332d057a148f6ffa7879e99e969cf97af9878.tar.gz
podman-c50332d057a148f6ffa7879e99e969cf97af9878.tar.bz2
podman-c50332d057a148f6ffa7879e99e969cf97af9878.zip
Merge pull request #2051 from rhatdan/shm
Fixes to handle /dev/shm correctly.
Diffstat (limited to 'libpod/runtime_ctr.go')
-rw-r--r--libpod/runtime_ctr.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go
index c448f8cb1..a9095c6d1 100644
--- a/libpod/runtime_ctr.go
+++ b/libpod/runtime_ctr.go
@@ -180,7 +180,8 @@ func (r *Runtime) newContainer(ctx context.Context, rSpec *spec.Spec, options ..
if ctr.config.LogPath == "" {
ctr.config.LogPath = filepath.Join(ctr.config.StaticDir, "ctr.log")
}
- if ctr.config.ShmDir == "" {
+
+ if !MountExists(ctr.config.Spec.Mounts, "/dev/shm") && ctr.config.ShmDir == "" {
if ctr.state.UserNSRoot == "" {
ctr.config.ShmDir = filepath.Join(ctr.bundlePath(), "shm")
} else {