diff --git a/commands/imagetools/inspect.go b/commands/imagetools/inspect.go index 6ee673e8..0e2cf90c 100644 --- a/commands/imagetools/inspect.go +++ b/commands/imagetools/inspect.go @@ -30,7 +30,7 @@ func runInspect(dockerCli command.Cli, in inspectOptions, name string) error { } if in.raw { - fmt.Printf("%s\n", dt) + fmt.Printf("%s", dt) // avoid newline to keep digest return nil }