summaryrefslogtreecommitdiff
path: root/cmd/podman/common/create_opts.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-21 13:56:17 -0500
committerGitHub <noreply@github.com>2021-01-21 13:56:17 -0500
commit469c2031fc1529ff81e1d8d9f05099ddca265174 (patch)
tree1fea8ee0e6c20a2be0da81f6f0413d7ce2bd2415 /cmd/podman/common/create_opts.go
parentac4ccdc3f17d6161b61831af231120748dd46982 (diff)
parent22d2caeeb1acadaced47bbacccec5f597e0d99f4 (diff)
downloadpodman-469c2031fc1529ff81e1d8d9f05099ddca265174.tar.gz
podman-469c2031fc1529ff81e1d8d9f05099ddca265174.tar.bz2
podman-469c2031fc1529ff81e1d8d9f05099ddca265174.zip
Merge pull request #9055 from baude/v3backportcomposelog
[3.0] Set log driver for compatability containers
Diffstat (limited to 'cmd/podman/common/create_opts.go')
-rw-r--r--cmd/podman/common/create_opts.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/podman/common/create_opts.go b/cmd/podman/common/create_opts.go
index 9635f4135..f252618ce 100644
--- a/cmd/podman/common/create_opts.go
+++ b/cmd/podman/common/create_opts.go
@@ -517,3 +517,10 @@ func volumes() []string {
}
return nil
}
+
+func logDriver() string {
+ if !registry.IsRemote() {
+ return containerConfig.Containers.LogDriver
+ }
+ return ""
+}