Skip to content

Instantly share code, notes, and snippets.

@keydon
Created February 1, 2022 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keydon/f4e2c57b8932cd6c1ab6b659f1cee096 to your computer and use it in GitHub Desktop.
Save keydon/f4e2c57b8932cd6c1ab6b659f1cee096 to your computer and use it in GitHub Desktop.
Edit daemon.json for the docker-engine within rancher desktop on a mac
#!/bin/bash
# DISCLAIMER: I am not a mac person
# Sources: https://github.com/rancher-sandbox/rancher-desktop/issues/1330
brew install lima
# Since brew is broken for me I fetched the limectl prebuilt binary from https://github.com/lima-vm/lima/releases/tag/v0.8.2
export LIMA_HOME=~/Library/Application\ Support/rancher-desktop/lima
# Note the following commands, only work when the env var is set
limactl ls
limactl shell 0
sudo vi /etc/docker/daemon.json
# Quit and Start Rancher Desktop again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment