summaryrefslogtreecommitdiff
path: root/libpod/container_internal_linux.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-08-17 16:24:56 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-08-18 14:31:00 -0400
commitbd63a252f3095274e35c9ab2f5d51f833dd89619 (patch)
treeefe9bd3170ff071a3d3ecec4a7181ca35bc6c2a9 /libpod/container_internal_linux.go
parent748e8829da76394ec956ea6590599fab01b467b7 (diff)
downloadpodman-bd63a252f3095274e35c9ab2f5d51f833dd89619.tar.gz
podman-bd63a252f3095274e35c9ab2f5d51f833dd89619.tar.bz2
podman-bd63a252f3095274e35c9ab2f5d51f833dd89619.zip
Don't limit the size on /run for systemd based containers
We had a customer incident where they ran out of space on /run. If you don't specify size, it will be still limited to 50% or memory available in the cgroup the container is running in. If the cgroup is unlimited then the /run will be limited to 50% of the total memory on the system. Also /run is mounted on the host as exec, so no reason for us to mount it noexec. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r--libpod/container_internal_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index fdee3877c..ea4340e00 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -571,7 +571,7 @@ func (c *Container) setupSystemd(mounts []spec.Mount, g generate.Generator) erro
Destination: dest,
Type: "tmpfs",
Source: "tmpfs",
- Options: append(options, "tmpcopyup", "size=65536k"),
+ Options: append(options, "tmpcopyup"),
}
g.AddMount(tmpfsMnt)
}