Last active
July 1, 2020 03:46
-
-
Save gregjhogan/de0ea1a4d5dd71f996b8b6e87db2947a to your computer and use it in GitHub Desktop.
setup and build an arm64 docker image on x86/amd64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # requires docker-cli 19.03 or higher | |
| docker run --privileged linuxkit/binfmt:v0.7 | |
| export DOCKER_CLI_EXPERIMENTAL=enabled | |
| docker buildx use arm64builder || docker buildx create --name arm64builder --use | |
| docker buildx inspect --bootstrap | |
| docker buildx build --platform=linux/arm64 -t <tag> -f <docker-file> . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment