Skip to content

Instantly share code, notes, and snippets.

@adomenech73
Last active January 24, 2025 19:31
Show Gist options
  • Save adomenech73/c577c8f759c2eba42301e3f1f7209f11 to your computer and use it in GitHub Desktop.
Save adomenech73/c577c8f759c2eba42301e3f1f7209f11 to your computer and use it in GitHub Desktop.
MacOsx Silicon Docker Setup

MacOsx Silicon Docker Setup

  • requierements install:
brew install colima
brew install docker docker-buildx
  • edit ~/.docker/config.json and add:
"cliPluginsExtraDirs": ["/opt/homebrew/lib/docker/cli-plugins"]
  • create performant colima vm
colima start --profile default --activate --arch amd64 \
--cpu 8 --disk 20 --memory 12 --cpu-type max \
--mount ${HOME}:w --mount-inotify \
--ssh-agent --vm-type vz --vz-rosetta --verbose
  • edit ~/.zprofile and add:
export COLIMA_VM="default"
export COLIMA_VM_SOCKET="${HOME}/.colima/${COLIMA_VM}/docker.sock"
export DOCKER_HOST="unix://${COLIMA_VM_SOCKET}"
export DOCKER_DEFAULT_PLATFORM=linux/amd64
  • source ~/.zprofile
source ~/.zprofile
  • vm operations
colima start
colima stop
colima delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment