Why can't the soft connection in Linux be accessed in docker? How to solve it!

Alibaba cloud Q & A 2022-02-13 06:14:11 阅读数:904

soft connection linux accessed docker

image.png

I want to consult upload The directory uses a soft connection , And the permissions are added , however cd upload Report errors No such file or directory, What's the problem ?




Take the answer 1:

Hello! , If you just want to map the host directory to the container , Soft link deleted , Alone /upload Mounted to the actual Directory . adopt volumes Way can also achieve your goal , You don't need to operate in this way in the figure .


copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130614095526.html