Skip to content

Instantly share code, notes, and snippets.

@nbenns
Created January 31, 2022 19:16
Show Gist options
  • Save nbenns/ece6da15191937390b733f0b9e919b34 to your computer and use it in GitHub Desktop.
Save nbenns/ece6da15191937390b733f0b9e919b34 to your computer and use it in GitHub Desktop.
Install Podman and Kind on Mac to replace docker-desktop
brew install podman --head # you must use head due to issues with kind compatibility
# make sure docker desktop is deleted
sudo unlink /usr/local/bin/docker
sudo ln -s /usr/local/bin/podman /usr/local/bin/docker
podman machine init
podman machine start
podman machine ssh
# for intel:
curl -O https://kojipkgs.fedoraproject.org//packages/podman/4.0.0/0.2.rc2.fc35/x86_64/podman-4.0.0-0.2.rc2.fc35.x86_64.rpm
# for arm:
curl -O https://kojipkgs.fedoraproject.org//packages/podman/4.0.0/0.2.rc2.fc35/aarch64/podman-4.0.0-0.2.rc2.fc35.aarch64.rpm
sudo -i
# for intel:
rpm-ostree override replace /home/core/podman-4.0.0-0.2.rc2.fc35.x86_64.rpm
# for arm:
rpm-ostree override replace /home/core/podman-4.0.0-0.2.rc2.fc35.aarch64.rpm
echo ip6_tables > /etc/modules-load.d/ip6_tables.conf
systemctl reboot
# for docker-compose
export DOCKER_HOST=$(podman system connection ls --format="{{.URI}}" | grep root | sed 's|/run/podman/podman.sock||')
ssh-add -k "$HOME/.ssh/podman-machine-default"
# if doing docker-compose up you get: error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``
# In ~/.docker/config.json change credsStore to credStore
# for kubernetes
brew install kind kubectl
kind create cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment