Docker - cannot mount volume over existing file, file exists

后端 未结 3 1073
感动是毒
感动是毒 2021-02-07 08:30

I\'m trying to build a data container for my application in Docker. I run this command to expose some volumes:

docker run --name svenv.nl-data -v /etc/environmen         


        
3条回答
  •  有刺的猬
    2021-02-07 09:08

    I guess because you are not mounting a file but instead declaring a mount. Try this notation instead: -v :/etc/environment

提交回复
热议问题