summaryrefslogtreecommitdiff
path: root/cmd/podman/common
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-09-01 11:36:26 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2021-09-27 12:07:01 +0200
commit3ce98a5ec28840f2d7836a002a156974f37f6c0e (patch)
treee684194119ec89281b72b73569052d423d96a6ad /cmd/podman/common
parent869cb9a65413cc99bf8ed0e158c0e2f7b0df513a (diff)
downloadpodman-3ce98a5ec28840f2d7836a002a156974f37f6c0e.tar.gz
podman-3ce98a5ec28840f2d7836a002a156974f37f6c0e.tar.bz2
podman-3ce98a5ec28840f2d7836a002a156974f37f6c0e.zip
logging: new mode -l passthrough
it allows to pass the current std streams down to the container. conmon support: https://github.com/containers/conmon/pull/289 [NO TESTS NEEDED] it needs a new conmon. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman/common')
-rw-r--r--cmd/podman/common/completion.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/podman/common/completion.go b/cmd/podman/common/completion.go
index 90522438d..ea453a331 100644
--- a/cmd/podman/common/completion.go
+++ b/cmd/podman/common/completion.go
@@ -771,10 +771,13 @@ func AutocompleteImageVolume(cmd *cobra.Command, args []string, toComplete strin
}
// AutocompleteLogDriver - Autocomplete log-driver options.
-// -> "journald", "none", "k8s-file"
+// -> "journald", "none", "k8s-file", "passthrough"
func AutocompleteLogDriver(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
// don't show json-file
logDrivers := []string{define.JournaldLogging, define.NoLogging, define.KubernetesLogging}
+ if !registry.IsRemote() {
+ logDrivers = append(logDrivers, define.PassthroughLogging)
+ }
return logDrivers, cobra.ShellCompDirectiveNoFileComp
}