moved context arg to last

Signed-off-by: David Karlsson <david.karlsson@docker.com>
This commit is contained in:
David Karlsson 2022-10-06 14:04:21 +02:00
parent f51884e893
commit f5a1d8bff9
3 changed files with 9 additions and 9 deletions

View File

@ -41,7 +41,7 @@ When you run a build, Buildx pulls the specified `image` (by default,
started, Buildx submits the build submitted to the containerized build server.
```console
$ docker buildx build . -t <image> --builder=container
$ docker buildx build -t <image> --builder=container .
WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
#1 [internal] booting buildkit
#1 pulling image moby/buildkit:buildx-stable-1
@ -59,7 +59,7 @@ Unlike when using the default `docker` driver, images built with the
Use the `--load` flag:
```console
$ docker buildx build . --load -t <image> --builder=container
$ docker buildx build --load -t <image> --builder=container .
...
=> exporting to oci image format 7.7s
=> => exporting layers 4.9s
@ -86,11 +86,11 @@ architectures that you want to build for.
For example, to build a Linux image for `amd64` and `arm64`:
```console
$ docker buildx build . \
$ docker buildx build \
--builder=container \
--platform=linux/amd64,linux/arm64 \
-t <registry>/<image> \
--push
--push .
```
> **Warning**

View File

@ -135,11 +135,11 @@ output to.
For example, to build a Linux image for `amd64` and `arm64`:
```console
$ docker buildx build . \
$ docker buildx build \
--builder=kube \
--platform=linux/amd64,linux/arm64 \
-t <user>/<image> \
--push
--push .
```
> **Warning**
@ -309,10 +309,10 @@ Prerequisites:
```console
# Replace <registry> with your Docker username
# and <image> with the name of the image you want to build
docker buildx build . \
docker buildx build \
--builder=kube \
-t <registry>/<image> \
--push
--push .
```
That's it! You've now built an image from a Kubernetes pod, using Buildx!

View File

@ -75,7 +75,7 @@ You can switch to this new builder as the default using
`docker buildx use remote-unix`, or specify it per build using `--builder`:
```console
$ docker buildx build . --builder=remote-unix -t test --load
$ docker buildx build --builder=remote-unix -t test --load .
```
Remember that you need to use the `--load` flag if you want to load the build