diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-09-13 14:42:47 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@gmail.com> | 2018-09-13 14:42:47 -0400 |
commit | 95a374100b8127846d9f4f4a4cf8d9a5b2229912 (patch) | |
tree | 7490f476ff866f206e5287f385c03c65f07c07ed /libpod.conf | |
parent | 61eda671eca96b6fa32369572d9b49850895d37b (diff) | |
download | podman-95a374100b8127846d9f4f4a4cf8d9a5b2229912.tar.gz podman-95a374100b8127846d9f4f4a4cf8d9a5b2229912.tar.bz2 podman-95a374100b8127846d9f4f4a4cf8d9a5b2229912.zip |
Add a way to disable port reservation
We've increased the default rlimits to allow Podman to hold many
ports open without hitting limits and crashing, but this doesn't
solve the amount of memory that holding open potentially
thousands of ports will use. Offer a switch to optionally disable
port reservation for performance- and memory-constrained use
cases.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod.conf')
-rw-r--r-- | libpod.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libpod.conf b/libpod.conf index cc4a10cff..dcfeb67cc 100644 --- a/libpod.conf +++ b/libpod.conf @@ -80,3 +80,11 @@ pause_image = "k8s.gcr.io/pause:3.1" # Default command to run the pause container pause_command = "/pause" + +# Determines whether libpod will reserve ports on the host when they are +# forwarded to containers. When enabled, when ports are forwarded to containers, +# they are held open by conmon as long as the container is running, ensuring that +# they cannot be reused by other programs on the host. However, this can cause +# significant memory usage if a container has many ports forwarded to it. +# Disabling this can save memory. +#enable_port_reservation = true |