티스토리 뷰

공부

[docker] symbolic link

승가비 2022. 9. 30. 07:23
728x90

https://stackoverflow.com/questions/38485607/mount-host-directory-with-a-symbolic-link-inside-in-docker-container

 

Mount host directory with a symbolic link inside in docker container

I mounted the container with this parameter: -v /home/test/:/home/test Inside /home/test in the host there is a symbolic link pointing to a /mnt/ folder. But that link, although can be seen wh...

stackoverflow.com

docker run -p 80:80 -p 443:443 \
   --name test \
   -v /etc/letsencrypt/live/exemple.com:/etc/nginx/certs \
   -v /home/admin/nginx-default.conf:/etc/nginx/conf.d/default.conf:ro test

https://stackoverflow.com/questions/35230475/symbolic-link-host-to-docker-container

 

Symbolic Link Host to Docker Container

Well, Basically I wanna create a Symbolic link "ln -s" from my host to my container. To sum up: the host folder .m2 of the host must have a Symbolic link to the .m2 folder inside my container,

stackoverflow.com

 

728x90
댓글