summaryrefslogtreecommitdiff
path: root/libpod/runtime.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-03-05 11:46:47 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-03-11 09:29:04 +0100
commite02393ba700907ae193190f7335d3f2ec83c442a (patch)
treeb9603c6fa65ed55e1bc746d777f5ce1896a62cf1 /libpod/runtime.go
parent349e6911497a95a6a8121524b56704fe680f2b09 (diff)
downloadpodman-e02393ba700907ae193190f7335d3f2ec83c442a.tar.gz
podman-e02393ba700907ae193190f7335d3f2ec83c442a.tar.bz2
podman-e02393ba700907ae193190f7335d3f2ec83c442a.zip
libpod: allow to configure path to the network-cmd binary
allow to configure the path to the network-cmd binary, either via an option flag --network-cmd-path or through the libpod.conf configuration file. This is currently used to customize the path to the slirp4netns binary. Closes: https://github.com/containers/libpod/issues/2506 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r--libpod/runtime.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go
index 9667abfe6..535b6f41b 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -217,6 +217,8 @@ type RuntimeConfig struct {
EnablePortReservation bool `toml:"enable_port_reservation"`
// EnableLabeling indicates wether libpod will support container labeling
EnableLabeling bool `toml:"label"`
+ // NetworkCmdPath is the path to the slirp4netns binary
+ NetworkCmdPath string `toml:"network_cmd_path"`
// NumLocks is the number of locks to make available for containers and
// pods.