summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-30 16:54:00 +0100
committerGitHub <noreply@github.com>2020-10-30 16:54:00 +0100
commit6b5a94cf2831df0633cc03a28f432177c0ee1d7b (patch)
treeeff47a0f64811a5c8d98c2aa474a445d5a69e07e /pkg
parent3db54bacaa479bb4ef3bbdea724f892b08cd76d1 (diff)
parent916825b6753086d7712ba593e5381b9bd49aae96 (diff)
downloadpodman-6b5a94cf2831df0633cc03a28f432177c0ee1d7b.tar.gz
podman-6b5a94cf2831df0633cc03a28f432177c0ee1d7b.tar.bz2
podman-6b5a94cf2831df0633cc03a28f432177c0ee1d7b.zip
Merge pull request #8192 from rhatdan/shm
Pod's that share the IPC Namespace need to share /dev/shm
Diffstat (limited to 'pkg')
-rw-r--r--pkg/specgen/generate/namespaces.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/specgen/generate/namespaces.go b/pkg/specgen/generate/namespaces.go
index 7e4f09dc4..55a0118cb 100644
--- a/pkg/specgen/generate/namespaces.go
+++ b/pkg/specgen/generate/namespaces.go
@@ -127,6 +127,7 @@ func namespaceOptions(ctx context.Context, s *specgen.SpecGenerator, rt *libpod.
return nil, errNoInfra
}
toReturn = append(toReturn, libpod.WithIPCNSFrom(infraCtr))
+ toReturn = append(toReturn, libpod.WithShmDir(infraCtr.ShmDir()))
case specgen.FromContainer:
ipcCtr, err := rt.LookupContainer(s.IpcNS.Value)
if err != nil {