diff options
-rw-r--r-- | libpod/container_log_linux.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/container_log_linux.go b/libpod/container_log_linux.go index d895171cf..c9620100e 100644 --- a/libpod/container_log_linux.go +++ b/libpod/container_log_linux.go @@ -34,6 +34,8 @@ func (c *Container) readFromJournal(ctx context.Context, options *logs.LogOption var config journal.JournalReaderConfig if options.Tail < 0 { config.NumFromTail = 0 + } else if options.Tail == 0 { + config.NumFromTail = math.MaxUint64 } else { config.NumFromTail = uint64(options.Tail) } |