Skip to content

Instantly share code, notes, and snippets.

@sheurich
Last active December 8, 2022 21:57
Show Gist options
  • Save sheurich/0a25c78177dcc3e020ad7a796cb35045 to your computer and use it in GitHub Desktop.
Save sheurich/0a25c78177dcc3e020ad7a796cb35045 to your computer and use it in GitHub Desktop.
#!/bin/sh
brew install docker docker-buildx docker-compose
mkdir -p ~/.docker/cli-plugins
ln -sfn \
$(brew --prefix)/opt/docker-compose/bin/docker-compose \
$(brew --prefix)/opt/docker-buildx/bin/docker-buildx \
~/.docker/cli-plugins/
curl -sO \
https://gist.githubusercontent.com/sheurich/37c63a103ba6e9c745f68780e6020758/raw/6e4f51e64b7fe7418f59138481302e790ce8b555/docker-vz.yaml
# Edit `docker-vz.yaml` as needed (e.g. processor count, memory)
brew install --HEAD --fetch-head lima
limactl start --name=default docker-vz.yaml
docker context create lima-default --docker "host=unix://$HOME/.lima/default/sock/docker.sock"
docker context use lima-default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment