dockercompose 挂载的深刻理解,只能挂载文件夹,不能挂载文件啊!!!

docker-compose 挂载的深刻理解,只能挂载文件夹,不能挂载文件啊!!!

Docker mounting rootfs caused not a directory error

You can't mount a file into a directory in docker. That's why you are getting the error.

来源:

https://stackoverflow.com/questions/59697242/docker-mounting-rootfs-caused-not-a-directory-error

####

原文地址:https://www.cnblogs.com/andy0816/p/15554007.html