DOCKER-BUILDX-DIAL-STDIO(1)
π DOCKER-BUILDX-DIAL-STDIO(1) β like, the manual page bestie
okay so. hi. you found the docker-buildx-dial-stdio page and honestly? it's a whole vibe. it's giving "plumbing that doesn't want to talk to you." let's get into it β¨
β¨ NAME β¨
docker-buildx-dial-stdio β proxy current stdio streams to builder instance π«Ά
πΈ SYNOPSIS πΈ
docker buildx dial-stdio
π¦ DESCRIPTION π¦
so basically, dial-stdio takes the stdin and stdout streams of the command and uses them to proxy to the configured builder instance. that's it. that's the whole job. π
and no, bestie, this is not intended to be used by humans. like, at all. it's for other tools β the ones that wanna interact with the builder instance via the BuildKit API. you're not the target audience here and that's okay, we still love you. π
π OPTIONS π
-h,--help[=false]β help fordial-stdio. it tells you about itself. iconic behaviour honestly.--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. the family heirloom, passed down from the parent commands π
β EXAMPLE β
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.
not me reading "may not be suitable for production use" and still wanting to ship it π please don't. it said what it said.
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
}))
π SEE ALSO π
docker-buildx(1)β go read the parent, it's the main character energy of this whole family π
and that's the page, bestie. this one's from the Apr 2025 drop of the DOCKER-BUILDX-DIAL-STDIO(1) manual. slay, stay piping streams, and remember: this tool doesn't wanna know you, it just wants to talk to other tools. no cap. π§β¨π
π¦ where this page comes from
- debian trixie: docker-buildx 0.13.1+ds1-3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms