gabrieldemarmiesse / python-on-whales

An awesome Python wrapper for an awesome Docker CLI!
MIT License
541 stars 101 forks source link

Add `platform` param to `buildx.create()` #540

Closed rcwbr closed 7 months ago

rcwbr commented 7 months ago

When using the buildx.create function, it should be possible to specify the platform of the builder container as with the docker buildx create --platform flag. This could look something like

buildx.create(
    name="builder-name",
    driver="docker-container",
    platforms=["linux/amd64"],
    use=True,
)
gabrieldemarmiesse commented 7 months ago

Sure thing. I'm open to such a pull request.