Sample Header Ad - 728x90

NetBSD: podman mount volume: Error: statfs : no such file or directory

2 votes
0 answers
1354 views
I'm experimenting with podman under NetBSD and want to mount a host directory into the container. * According to this answer I did:
-shell
    podman machine init -v ~/podman/volumes/:/mnt/podman tpvm
    podman machine start tpvm
* Now I would expect that
-shell
    podman machine ssh tpvm 'ls /mnt'
shows me the podman directory, but it did not. * I continue with:
-shell
    podman run -ti --rm -v ~/podman/volumes/:/mnt/podman busybox
and I get:
Error: statfs /home/thomas/podman/volumes: no such file or directory
* However:
-shell
    ll  /home/thomas/podman/volumes
    total 1.5K
    drwxr-xr-x  3 thomas  users  512B Nov 16 16:20 .
    drwxr-xr-x  4 thomas  users  512B Nov 16 16:20 ..
    drwxr-xr-x  2 thomas  users  512B Nov 17 15:56 posgres
There is a MAC related thread here , and I also tried this idea but always get the same error. Any ideas what went wrong? P.S.: I also checked the output of --log-level=debug of the above commands, but got nothing useful for this case.
Asked by Thomas P (23 rep)
Nov 20, 2023, 12:12 PM
Last activity: Nov 22, 2023, 02:52 PM