-
Download and install podman from https://github.com/containers/podman/releases. Remember to use the arm verison.
-
Configure OSX machine provider config to use apple's hypervisor
mkdir -p ~/.config/containers tee ~/.config/containers/containers.conf 1> /dev/null <<EOF [containers] [engine] [machine] provider = "applehv" [network] [secrets] [configmaps] [farms] EOF
-
Install a required helper to allow podman to utilize the applehv machine provider
brew tap cfergeau/crc brew install vfkit
-
Initialize podman:
podman machine init --cpus 5 --memory 6144
-
Install podman mac helper:
sudo podman-mac-helper install
-
Create a dummy
docker
file for compatibilitysudo tee /usr/local/bin/docker 1> /dev/null <<EOF #!/usr/bin/env bash [ -e /etc/containers/nodocker ] || echo "Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg." >&2 exec podman "\$@" EOF sudo chmod +x /usr/local/bin/docker
-
Install Docker Compose
2>/dev/null 1>/dev/null brew install docker-compose mkdir -p ~/.docker/cli-plugins ln -sfn /opt/homebrew/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
-
Start podman:
podman machine start
Created
January 18, 2024 12:49
-
-
Save azzlack/1a0487dd8b2ac3faa3689b4bfcedff2d to your computer and use it in GitHub Desktop.
Install Podman on M1 Mac
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment