File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import (
28
28
"github.com/compose-spec/compose-go/cli"
29
29
"github.com/compose-spec/compose-go/types"
30
30
composegoutils "github.com/compose-spec/compose-go/utils"
31
+ "github.com/docker/buildx/util/logutil"
31
32
dockercli "github.com/docker/cli/cli"
32
33
"github.com/docker/cli/cli-plugins/manager"
33
34
"github.com/docker/cli/cli/command"
@@ -250,6 +251,16 @@ func RunningAsStandalone() bool {
250
251
251
252
// RootCommand returns the compose command with its child commands
252
253
func RootCommand (dockerCli command.Cli , backend api.Service ) * cobra.Command {
254
+ // filter out useless commandConn.CloseWrite warning message that can occur
255
+ // when using a remote context that is unreachable: "commandConn.CloseWrite: commandconn: failed to wait: signal: killed"
256
+ // https://github.com/docker/cli/blob/e1f24d3c93df6752d3c27c8d61d18260f141310c/cli/connhelper/commandconn/commandconn.go#L203-L215
257
+ logrus .AddHook (logutil .NewFilter ([]logrus.Level {
258
+ logrus .WarnLevel ,
259
+ },
260
+ "commandConn.CloseWrite:" ,
261
+ "commandConn.CloseRead:" ,
262
+ ))
263
+
253
264
opts := projectOptions {}
254
265
var (
255
266
ansi string
You can’t perform that action at this time.
0 commit comments