Skip to content

Instantly share code, notes, and snippets.

@davidmroth
Created November 4, 2021 23:54
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 davidmroth/88c1b785bb3c6dfd2e88d56d50ca0f4a to your computer and use it in GitHub Desktop.
Save davidmroth/88c1b785bb3c6dfd2e88d56d50ca0f4a to your computer and use it in GitHub Desktop.
Podman w/ docker-compose on MacOS
# Get ssh configuration to find port
podman system connection ls
# Create ssh tunnel [PORT] found in the above command
ssh -nNT -L/tmp/podman.sock:/run/user/1000/podman/podman.sock -i ~/.ssh/podman-machine-default ssh://core@localhost:[PORT]
# Export socket location for docker-compose
export DOCKER_HOST='unix:///tmp/podman.sock'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment