转自:https://stackoverflow.com/questions/47227384/docker-error-response-from-daemon-invalid-volume-specification-ubuntu
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
Google Chrome
Windows 10