Installing and Using Podman on Mac

To allow volume mounts on MacOS, podman machine needs to be created with access to the folder from which you are going to attempt to mount sub-folders, so it would have access to it. Is likely that most MacOS users would only want to mount from within their home directory, so machine should be created like below:

# install podman itself
brew install podman 
# download and init linux VM using qemu
podman machine init --cpus 2 --cpus=4 --memory=4096 -v $HOME:$HOME
# start podman
podman machine start
 
# add this to .bash_profile or .zshrc
export DOCKER_HOST=unix://`podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}'`  
 
brew install docker docker-compose

Resources

Error `unable to upgrade to tcp, received 409

This is a bit of an annoying catch all error which is masked by podman when running docker in compatibility mode. You can often get to the bottom of it by running the same command in podman instead.