@@ -10,10 +10,12 @@ import (
1010 "time"
1111
1212 "github.com/docker/buildx/builder"
13+ "github.com/docker/buildx/driver"
1314 "github.com/docker/buildx/util/cobrautil/completion"
1415 "github.com/docker/buildx/util/platformutil"
1516 "github.com/docker/cli/cli"
1617 "github.com/docker/cli/cli/command"
18+ "github.com/docker/cli/cli/debug"
1719 "github.com/docker/go-units"
1820 "github.com/moby/buildkit/util/appcontext"
1921 "github.com/spf13/cobra"
@@ -92,6 +94,18 @@ func runInspect(dockerCli command.Cli, in inspectOptions) error {
9294 fmt .Fprintf (w , "Buildkit:\t %s\n " , nodes [i ].Version )
9395 }
9496 fmt .Fprintf (w , "Platforms:\t %s\n " , strings .Join (platformutil .FormatInGroups (n .Node .Platforms , n .Platforms ), ", " ))
97+ if debug .IsEnabled () {
98+ fmt .Fprintf (w , "Features:\n " )
99+ features := nodes [i ].Driver .Features (ctx )
100+ featKeys := make ([]string , 0 , len (features ))
101+ for k := range features {
102+ featKeys = append (featKeys , string (k ))
103+ }
104+ sort .Strings (featKeys )
105+ for _ , k := range featKeys {
106+ fmt .Fprintf (w , "\t %s:\t %t\n " , k , features [driver .Feature (k )])
107+ }
108+ }
95109 if len (nodes [i ].Labels ) > 0 {
96110 fmt .Fprintf (w , "Labels:\n " )
97111 for _ , k := range sortedKeys (nodes [i ].Labels ) {
0 commit comments