summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-02-18 16:30:46 -0500
committerMatthew Heon <matthew.heon@pm.me>2019-02-25 17:43:25 -0500
commit5b010ee58b1c9053fc9113d5a4dcb6d28c16798e (patch)
treef62deaa92698a8cd1018a4e9e484a1137a2630f7
parent228d1cbcd372b086669e35c1237fc5064b24ea7d (diff)
downloadpodman-5b010ee58b1c9053fc9113d5a4dcb6d28c16798e.tar.gz
podman-5b010ee58b1c9053fc9113d5a4dcb6d28c16798e.tar.bz2
podman-5b010ee58b1c9053fc9113d5a4dcb6d28c16798e.zip
Add num_locks to the default libpod config
Allow adjusting number of locks in libpod.conf via an already available knob we previously didn't expose in the default config file. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
-rw-r--r--docs/libpod.conf.5.md5
-rw-r--r--libpod.conf6
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/libpod.conf.5.md b/docs/libpod.conf.5.md
index 0c11e2013..0836c45fa 100644
--- a/docs/libpod.conf.5.md
+++ b/docs/libpod.conf.5.md
@@ -82,6 +82,11 @@ libpod to manage containers.
**label**="true|false"
Indicates whether the containers should use label separation.
+**num_locks**=""
+ Number of locks available for containers and pods. Each created container or pod consumes one lock.
+ The default number available is 2048.
+ If this is changed, a lock renumbering must be performed, using the `podman system renumber` command.
+
## FILES
`/usr/share/containers/libpod.conf`, default libpod configuration path
diff --git a/libpod.conf b/libpod.conf
index c4e7dc628..8d6158ed5 100644
--- a/libpod.conf
+++ b/libpod.conf
@@ -88,6 +88,12 @@ pause_command = "/pause"
# Default libpod support for container labeling
# label=true
+# Number of locks available for containers and pods.
+# If this is changed, a lock renumber must be performed (e.g. with the
+# 'podman system renumber' command).
+num_locks = 2048
+
+# Default OCI runtime
runtime = "runc"
# Paths to look for a valid OCI runtime (runc, runv, etc)