fussybeaver / bollard

Docker daemon API in Rust
Apache License 2.0
798 stars 126 forks source link

Support for multiple image build tags? #388

Open jalaziz opened 4 months ago

jalaziz commented 4 months ago

The documentation for t on BuildImageOptions states "You can provide several t parameters.". However, that doesn't seem to be actually possible since the t is of type T which is usually String (or a type that can convert into String).

Am I missing something or is multiple tags on build not actually supported yet?

fussybeaver commented 3 months ago

It's not supported right now as far as I can see. I think it might need some experimentation to figure out if there's an easy way to build support for that, but it doesn't look that easy as I think the generic query string builder won't like having multiple duplicate keys. Possibly this is a good queue to move these query-string type structs to a builder pattern, though that's an even bigger piece of work.