aboutsummaryrefslogtreecommitdiff
path: root/libpod.conf
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-01-04 11:16:40 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-01-14 10:22:18 +0100
commit50c86ae3892a3708afb00189fea52547cb60572f (patch)
tree47893987cef11882b6fc7832ee9d478d781a01d1 /libpod.conf
parent650cf122e1b33f4d8f4426ee1cc1a4bf00c14798 (diff)
downloadpodman-50c86ae3892a3708afb00189fea52547cb60572f.tar.gz
podman-50c86ae3892a3708afb00189fea52547cb60572f.tar.bz2
podman-50c86ae3892a3708afb00189fea52547cb60572f.zip
oci: allow to define multiple OCI runtimes
we can define multiple OCI runtimes that can be chosen with --runtime. in libpod.conf is possible to specify them with: [runtimes] foo = [ "/usr/bin/foo", "/usr/sbin/foo", ] bar = [ "/usr/bin/foo", "/usr/sbin/foo", ] If the argument to --runtime is an absolute path then it is used directly without any lookup in the configuration. Closes: https://github.com/containers/libpod/issues/1750 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod.conf')
-rw-r--r--libpod.conf23
1 files changed, 12 insertions, 11 deletions
diff --git a/libpod.conf b/libpod.conf
index cfdf83775..acd6c8982 100644
--- a/libpod.conf
+++ b/libpod.conf
@@ -4,17 +4,6 @@
# Default transport method for pulling and pushing for images
image_default_transport = "docker://"
-# Paths to look for a valid OCI runtime (runc, runv, etc)
-runtime_path = [
- "/usr/bin/runc",
- "/usr/sbin/runc",
- "/usr/local/bin/runc",
- "/usr/local/sbin/runc",
- "/sbin/runc",
- "/bin/runc",
- "/usr/lib/cri-o-runc/sbin/runc"
-]
-
# Paths to look for the Conmon container manager binary
conmon_path = [
"/usr/libexec/podman/conmon",
@@ -98,3 +87,15 @@ pause_command = "/pause"
# Default libpod support for container labeling
# label=true
+
+# Paths to look for a valid OCI runtime (runc, runv, etc)
+[runtimes]
+runc = [
+ "/usr/bin/runc",
+ "/usr/sbin/runc",
+ "/usr/local/bin/runc",
+ "/usr/local/sbin/runc",
+ "/sbin/runc",
+ "/bin/runc",
+ "/usr/lib/cri-o-runc/sbin/runc"
+]