https://rancher.com/ logo
Title
c

chilly-toddler-80124

04/11/2023, 6:34 PM
hi! anyone here to help me in podman?
how can I mount a local directory to the podman container?
It creates a new volume and uses it. Why?
podman run -it -p 8000:8000 .... -v $(pwd)/app:/app
s

sparse-fireman-14239

04/12/2023, 7:17 AM
You should really try a Podman forum instead, surely there's something out there.
c

chilly-toddler-80124

04/12/2023, 6:02 PM
the solution was: 🙂
podman run --rm -it -p 8000:8000 --name myapp --hostname myapp -v $(pwd)/app:/app:Z  fedora:myapp