docs icon indicating copy to clipboard operation
docs copied to clipboard

cli: make buildx build the canonical build

Open dvdksn opened this issue 1 year ago • 6 comments

Description

Make buildx build the canonical build command

docker build docker build (legacy builder)

Related issues or tickets

  • https://github.com/docker/cli/pull/5002
  • https://github.com/docker/buildx/pull/2397

dvdksn avatar Apr 10 '24 12:04 dvdksn

Deploy Preview for docsdocker ready!

Name Link
Latest commit f7ccee34b0a4b71e4a1306d817f280e74f660516
Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/6696441bf9372f0008a6194e
Deploy Preview https://deploy-preview-19774--docsdocker.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Apr 10 '24 12:04 netlify[bot]

@thaJeztah @crazy-max I started looking at making buildx build the canonical CLI reference page for docker build, and repurposing the prevous docker [image] build page to cover only the legacy builder.

dvdksn avatar Apr 10 '24 12:04 dvdksn

@thaJeztah @crazy-max I started looking at making buildx build the canonical CLI reference page for docker build, and repurposing the prevous docker [image] build page to cover only the legacy builder.

Should we also duplicate/copy related reference docs missing in https://github.com/docker/buildx/blob/master/docs/reference/buildx_build.md?

Edit: nevermind https://github.com/docker/buildx/pull/2397

crazy-max avatar Apr 10 '24 12:04 crazy-max

I pretty much just moved the flag descriptions for things like --build-arg without touching them. Might need to update some things.

Wondering if we should use docker build or docker buildx build in the examples on the Buildx reference page after this.

dvdksn avatar Apr 10 '24 12:04 dvdksn

Also this diff is showing what's on master for buildx, so not appropriate for merging here, just included to show what it will look like. Will need to backport to 0.13 branch if we want to release before 0.14. Maybe easier to do after that release.

dvdksn avatar Apr 10 '24 12:04 dvdksn

Wondering if we should use docker build or docker buildx build in the examples on the Buildx reference page after this.

I think using canonical docker buildx build would be better in GitHub markdown

crazy-max avatar Apr 10 '24 13:04 crazy-max