Skip to content

feature request: a --push flag for docker buildx bake #190

@patrickattnt

Description

@patrickattnt

After creating a buildx builder with a number of enabled platforms (eg. amd64, arm64), I was able to successfully using a command like:

docker buildx build --push --platform linux/amd64,linux/arm64 -t registry-url/project/project:latest -f Dockerfile .

It appears that the following command works as well:
docker buildx bake -f docker-compose.yml

The use of the docker-compose.yml file for bake is definitely advantageous - there are multiple build targets defined in the Dockerfile and docker-compose.yml file using https://docs.docker.com/compose/compose-file/#target

Requesting a flag for buildx bake that would be roughly equiv to 'docker-compose push' - it would build the necessary images for all defined platforms, and then push the images for all defined services to the registry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions