Skip to content

Commit

Permalink
Add note on docker buildx alias
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterius committed Apr 28, 2023
1 parent d179f77 commit 2a8e9f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pages/containers/containers-8-extra-material.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,15 @@ assumes that you have an account with `<username>` at DockerHub and you're
pushing the `<image>` image:

```bash
docker buildx build --platform linux/amd64,linux/arm64 -t <username>/<image>:latest --push .`
docker buildx build --platform linux/amd64,linux/arm64 -t <username>/<image>:latest --push .
```

* Execute the above command with your username and your image.

That's it! Now anybody who does *e.g.* `docker pull <username>/<image>` will get
an image appropriate for their architecture whether they are on AMD64 or ARM64!

> **An alias to `buildx`** <br>
> You can type `docker buildx install` to make the `docker build` into an alias
> for `docker buildx`, allowing you to run multi-platform builds using `docker
> build`. Use `docker buildx uninstall` to remove this alias.

0 comments on commit 2a8e9f1

Please sign in to comment.