fussybeaver / bollard

Docker daemon API in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to specify multi-stage build target in build_image?

cylewitruk opened this issue · comments

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

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..