docker-buildx-dial-stdio(1)

docker-buildx-dial-stdio1

Proxy current stdio streams to builder instance

Usage

docker buildx dial-stdio

Overview

dial-stdio uses the stdin and stdout streams of the command to proxy to the configured builder instance. It is not intended to be used by humans, but rather by other tools that want to interact with the builder instance via BuildKit API.

Options

-h, --help[=false]
help for dial-stdio

--platform=""
Target platform: this is used for node selection

--progress="quiet"
Set type of progress output (auto, plain, tty).

Options inherited from parent commands

--builder=""
Override the configured builder instance

Examples

Example go program that uses the dial-stdio command wire up a buildkit client.
This is for example use only and may not be suitable for production use.
```go
client.New(ctx, "", client.WithContextDialer(func(context.Context, string) (net.Conn, error) {
    c1, c2 := net.Pipe()
    cmd := exec.Command("docker", "buildx", "dial-stdio")
    cmd.Stdin = c1
    cmd.Stdout = c1
    if err := cmd.Start(); err != nil {
        c1.Close()
        c2.Close()
        return nil, err
    }
    go func() {
        cmd.Wait()
        c2.Close()
    }()
    return c2
}))

```

From docker-buildx 0.13.1+ds1-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.