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 (
2828 "github.com/compose-spec/compose-go/cli"
2929 "github.com/compose-spec/compose-go/types"
3030 composegoutils "github.com/compose-spec/compose-go/utils"
31+ "github.com/docker/buildx/util/logutil"
3132 dockercli "github.com/docker/cli/cli"
3233 "github.com/docker/cli/cli-plugins/manager"
3334 "github.com/docker/cli/cli/command"
@@ -250,6 +251,16 @@ func RunningAsStandalone() bool {
250251
251252// RootCommand returns the compose command with its child commands
252253func 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+
253264 opts := projectOptions {}
254265 var (
255266 ansi string
You can’t perform that action at this time.
0 commit comments