aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/common
diff options
context:
space:
mode:
authorNiall Crowe <nicrowe@redhat.com>2022-04-29 11:42:20 +0100
committerNiall Crowe <nicrowe@redhat.com>2022-05-04 12:52:27 +0100
commitccd576504e7fb578add8f5390fa8ceb41dd1d9d4 (patch)
tree81afdba0ebf6835a2cfc34ea2221e3ee3404b5ff /cmd/podman/common
parent3d84661195aa8fbf3dab67375099cb991fd7fe81 (diff)
downloadpodman-ccd576504e7fb578add8f5390fa8ceb41dd1d9d4.tar.gz
podman-ccd576504e7fb578add8f5390fa8ceb41dd1d9d4.tar.bz2
podman-ccd576504e7fb578add8f5390fa8ceb41dd1d9d4.zip
play kube default log driver
The default log driver is not used when using play kube without --log-driver. The LogDriver function needs to be called in order to use the default log driver. fixes #13781 Signed-off-by: Niall Crowe <nicrowe@redhat.com>
Diffstat (limited to 'cmd/podman/common')
-rw-r--r--cmd/podman/common/create.go2
-rw-r--r--cmd/podman/common/create_opts.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go
index 1c1a7c3e3..d28becc8a 100644
--- a/cmd/podman/common/create.go
+++ b/cmd/podman/common/create.go
@@ -299,7 +299,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions,
logDriverFlagName := "log-driver"
createFlags.StringVar(
&cf.LogDriver,
- logDriverFlagName, logDriver(),
+ logDriverFlagName, LogDriver(),
"Logging driver for the container",
)
_ = cmd.RegisterFlagCompletionFunc(logDriverFlagName, AutocompleteLogDriver)
diff --git a/cmd/podman/common/create_opts.go b/cmd/podman/common/create_opts.go
index 16f193b03..c40d1ea51 100644
--- a/cmd/podman/common/create_opts.go
+++ b/cmd/podman/common/create_opts.go
@@ -530,7 +530,7 @@ func volumes() []string {
return nil
}
-func logDriver() string {
+func LogDriver() string {
if !registry.IsRemote() {
return containerConfig.Containers.LogDriver
}