fussybeaver / bollard

Docker daemon API in Rust
Apache License 2.0
814 stars 127 forks source link

How to specify multi-stage build target in build_image? #391

Open cylewitruk opened 4 months ago

cylewitruk commented 4 months ago

Hi!

Well I've been scouring the documentation/examples and searching the code for how I might do this and I just can't figure out how to pass the build target, i.e. the equivalent to docker build --target runtime-stage .. Am I missing something? :)

--target string                 Set the target build stage to build
fussybeaver commented 4 months ago

It looks like a field that's new and needs to be added to the BuildImageOpts struct. The query parameter models are not sourced from the openapi, so we need to maintain those manually..