diff options
author | baude <bbaude@redhat.com> | 2021-01-19 15:51:01 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2021-01-20 13:07:31 -0600 |
commit | f43046745386d8cd15e010a6ade65619ad12b383 (patch) | |
tree | 6fe2543805da1c05e64daf20ad93779152bdad95 /cmd/podman/common/create.go | |
parent | fe4f9ba303affde0b838e19c862b45206ae2feed (diff) | |
download | podman-f43046745386d8cd15e010a6ade65619ad12b383.tar.gz podman-f43046745386d8cd15e010a6ade65619ad12b383.tar.bz2 podman-f43046745386d8cd15e010a6ade65619ad12b383.zip |
Set log driver for compatability containers
when using the compatibility api to create containers, now reflect the
use of k8s-file as json-file so that clients, which are
unaware of k8s-file, can work. specifically, if the container is using
k8s-file as the log driver, we change the log type in container
inspection to json-file. These terms are used interchangably in other
locations in libpod/podman.
this fixes log messages in compose as well.
[NO TESTS NEEDED]
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/common/create.go')
-rw-r--r-- | cmd/podman/common/create.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go index 280175f95..17fba5427 100644 --- a/cmd/podman/common/create.go +++ b/cmd/podman/common/create.go @@ -402,7 +402,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *ContainerCLIOpts) { logDriverFlagName := "log-driver" createFlags.StringVar( &cf.LogDriver, - logDriverFlagName, "", + logDriverFlagName, logDriver(), "Logging driver for the container", ) _ = cmd.RegisterFlagCompletionFunc(logDriverFlagName, AutocompleteLogDriver) |