diff --git a/commands/ls.go b/commands/ls.go index 0e6e7a02730b..ffd4c10d42a9 100644 --- a/commands/ls.go +++ b/commands/ls.go @@ -159,6 +159,9 @@ func lsPrint(dockerCli command.Cli, current *store.NodeGroup, builders []*builde } continue } + if ctx.Format.IsJSON() { + continue + } for _, n := range b.Nodes() { if n.Err != nil { if ctx.Format.IsTable() {