I have the following issue when I run the command docker run -v $(pwd):opt -p 8080:8080 -it synedra/hapi_api
:
docker: Error response from daemon: invalid volume specification: '/home/joasimar/trai/new:opt': invalid mount config for type "bind": invalid mount path: 'opt' mount path must be absolute.
How can I fix this?
The paths have to be absolute. There is no current working directory or /
assumed. Change it to:
docker run -v $(pwd):/opt -p 8080:8080 -it synedra/hapi_api
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With