diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-07-09 17:05:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 17:05:47 +0200 |
commit | bc3b3b373fab58929f4583ab0b5eb529e64a54fc (patch) | |
tree | d6a64a013d2957d676a1e74e3374350dfc2fbef0 /cmd/podman | |
parent | f86782c05293987acc750b259fa5a7fa0106b5b6 (diff) | |
parent | d0ebea06437f05dfd42ec50e1eef2da0310b65d9 (diff) | |
download | podman-bc3b3b373fab58929f4583ab0b5eb529e64a54fc.tar.gz podman-bc3b3b373fab58929f4583ab0b5eb529e64a54fc.tar.bz2 podman-bc3b3b373fab58929f4583ab0b5eb529e64a54fc.zip |
Merge pull request #6916 from vrothberg/logs-fixes
log API: add context to allow for cancelling
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/containers/logs.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/containers/logs.go b/cmd/podman/containers/logs.go index 850cb2e1f..966998877 100644 --- a/cmd/podman/containers/logs.go +++ b/cmd/podman/containers/logs.go @@ -32,6 +32,8 @@ var ( Long: logsDescription, Args: func(cmd *cobra.Command, args []string) error { switch { + case registry.IsRemote() && logsOptions.Latest: + return errors.New(cmd.Name() + " does not support 'latest' when run remotely") case registry.IsRemote() && len(args) > 1: return errors.New(cmd.Name() + " does not support multiple containers when run remotely") case logsOptions.Latest && len(args) > 0: |