Mac M1 Builds
01 Jul 2022 05:57
TAGS:
Setup Mac
- Get an M1 mac (via scaleway)
- Connect via VNC over SSH
- Install Docker Desktop
Setup Docker Hub account
- Log in to Docker Hub
- Generate access token. Copy to clipboard
Docker commands:
# Build:
$ docker buildx build --tag gabrys/elasticsearch:6.8 .
# Log in to Docker Hub:
$ security -v unlock-keychain ~/Library/Keychains/login.keychain-db
$ docker login -u gabrys
$ docker buildx create --use
# Build and push:
$ docker buildx build --platform linux/arm64/v8,linux/amd64 --push --tag gabrys/elasticsearch:6.8 .
Post preview:
Close preview