Troubleshooting Podman
Volume mounts on Mac
Home should be mounted by default on init:
$ podman machine init --help
# --snip--
-v, --volume stringArray Volumes to mount, source:target (default [$HOME:$HOME])
# --snip--
This currently (podman 4.3.1) mounts with security_model=mapped-xattr
, which causes issues with symlinks (“Too many levels of symbolic links”) and possibly other areas as well.
Mounting with security_model=none
fixes this.
This can be set in two ways:
- Specifying
podman machine init -v "$HOME:$HOME:rw,security_model=none [..]"
- Adding
volumes = ["$HOME:$HOME:rw,security_model=none"]
to the[machine]
section in~/.config/containers/containers.conf
See also:
- containers/podman#8016: Support native source folder for volume mount in remote model
- containers/podman#16102: Why symlinks from mounted macos folders are broken?
Machine init errors
- Adding
--now
topodman machine init
makes debugging easier. - In some cases where
podman machine init
fails,podman machine start
will still boot a working instance. - Wiping images from
$HOME/.local/share/containers/podman/machine/qemu/
after apodman machine rm
may help in some cases.
gvproxy
not found (Mac)
On Mac, I have had to explicitly list the directory containing gvproxy
before things would work:
➜ cat ~/.config/containers/containers.conf
[engine]
helper_binaries_dir = ["/usr/local/Cellar/podman/4.3.1/libexec/podman/"]