Docker command returns “invalid reference format”

前端 未结 3 1597
无人共我
无人共我 2020-12-09 15:31

I\'am using docker and using the following command:

docker run -d -p 9090:80 -v $(pwd):/usr/share/nginx/html nginx:alpine

to point to my

3条回答
  •  醉梦人生
    2020-12-09 16:01

    Seems like you have an invalid name somewhere. Did you try to output pwd ?

    Try to change the pwd with a static path.

    Take a look at the documentation it might help you as well https://docs.docker.com/v1.10/engine/reference/commandline/run/#mount-volume-v-read-only

提交回复
热议问题