summaryrefslogtreecommitdiff
path: root/libpod.conf
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-09-14 16:56:14 -0400
committerGitHub <noreply@github.com>2018-09-14 16:56:14 -0400
commit77985bc25bde30bb8e4ed6abab02242bbb5c0612 (patch)
treeb9ea6bd1f024a3d4074acf1286f1b48003f9eac5 /libpod.conf
parenta7b6a0fd16e4b5f4a30a16e0ec1d5574925717ae (diff)
parent95a374100b8127846d9f4f4a4cf8d9a5b2229912 (diff)
downloadpodman-77985bc25bde30bb8e4ed6abab02242bbb5c0612.tar.gz
podman-77985bc25bde30bb8e4ed6abab02242bbb5c0612.tar.bz2
podman-77985bc25bde30bb8e4ed6abab02242bbb5c0612.zip
Merge pull request #1464 from mheon/optionally_disable_port_reservation
Add a way to disable port reservation
Diffstat (limited to 'libpod.conf')
-rw-r--r--libpod.conf8
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