I have podman version 4.6.0 and MacOS version 12.6.
I found
https://github.com/ansible/vscode-ansible/wiki/macos and so recreated my podman
machine with `podman machine init -v $HOME:$HOME`. The VM config says
`security_model=none` without me having to tweak it.
I was pointed at
https://www.tutorialworks.com/podman-rootless-volumes/ but that does not
address the added degree of difficulty that the podman machine VM injects.
I am running podman rootless and want to run a container rootless with a host directory
mounted into the container.
The simplest thing does not work; the mounted directory appears inside the container to be
owned by root.
```
mspreitz@mjs12 ~ % ls -ldn $HOME/test3
drwxr-xr-x 2 501 20 64 Jul 31 23:52 /Users/mspreitz/test3
mspreitz@mjs12 ~ % podman run --rm -it --entrypoint sh -v $HOME/test3:/test3
quay.io/prometheus/prometheus
/prometheus $ id
uid=65534(nobody) gid=65534(nobody) groups=65534(nobody)
/prometheus $ ls -ldn /test3
drwxr-xr-x 2 0 65534 64 Aug 1 03:52 /test3
```
Trying a little harder gets a mysterious error message.
```
mspreitz@mjs12 ~ % podman run --rm -it --entrypoint sh
"--mount=type=bind,src=$HOME/test3,dst=/test3,idmap=uids=65534-501-1;gids=65534-20-1"
quay.io/prometheus/prometheus
Error: preparing container
ab8859c8bc4fc5df55f319e9e17a4831734d00ad2332462d18a238d4ccb0e831 for attach: crun:
mount_setattr `/Users/mspreitz/test3`: Invalid argument: OCI runtime error
```
Thanks,
Mike