@@ -10,6 +10,7 @@ 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"
@@ -92,6 +93,16 @@ func runInspect(dockerCli command.Cli, in inspectOptions) error {
9293 fmt .Fprintf (w , "Buildkit:\t %s\n " , nodes [i ].Version )
9394 }
9495 fmt .Fprintf (w , "Platforms:\t %s\n " , strings .Join (platformutil .FormatInGroups (n .Node .Platforms , n .Platforms ), ", " ))
96+ fmt .Fprintf (w , "Features:\n " )
97+ features := nodes [i ].Driver .Features (ctx )
98+ featKeys := make ([]string , 0 , len (features ))
99+ for k := range features {
100+ featKeys = append (featKeys , string (k ))
101+ }
102+ sort .Strings (featKeys )
103+ for _ , k := range featKeys {
104+ fmt .Fprintf (w , "\t %s:\t %t\n " , k , features [driver .Feature (k )])
105+ }
95106 if len (nodes [i ].Labels ) > 0 {
96107 fmt .Fprintf (w , "Labels:\n " )
97108 for _ , k := range sortedKeys (nodes [i ].Labels ) {
0 commit comments