Skip to content

Add support for docker buildx bake files #10919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ccasn opened this issue May 2, 2025 · 2 comments
Open

Add support for docker buildx bake files #10919

ccasn opened this issue May 2, 2025 · 2 comments
Assignees
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality
Milestone

Comments

@ccasn
Copy link

ccasn commented May 2, 2025

It would be nice if we could specify a buildx field in the devcontainer.json (similar to the current build field) to point to a docker-bake.hcl file. The Bake files is next generation of build definitions in docker, and is supperior to standard Dockerfiles: https://docs.docker.com/build/bake/reference/

I think the old build scheme with Dockerfiles are perfectly fine and covers 99% of all devcontainers. But when you start to have more complex setups and you want to reuse build configurations between multiple docker images it becomes much easier to maintain with Bake files.

So a suggestion would be that devcontainers (either building directly from a Dockerfile or using a docker-compose.yml) has 2 options:

  • build: what we have today
  • buildx: new feature that can point to a *.hcl file

If buildx is defined a docker buildx bake command in the background instead of normal docker build.

@vs-code-engineering vs-code-engineering bot added the containers Issue in vscode-remote containers label May 2, 2025
@chrmarti chrmarti added the feature-request Request for new features or functionality label May 3, 2025
@vs-code-engineering vs-code-engineering bot added this to the Backlog Candidates milestone May 3, 2025
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Copy link

🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants