Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
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
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.