Docker follow symlink outside context

后端 未结 5 2167
梦如初夏
梦如初夏 2020-12-05 12:54

Yet another Docker symlink question. I have a bunch of files that I want to copy over to all my Docker builds. My dir structure is:

parent_dir
    - common_f         


        
5条回答
  •  孤城傲影
    2020-12-05 13:05

    That is not possible and will not be implemented. Please have a look at the discussion on github issue #1676:

    We do not allow this because it's not repeatable. A symlink on your machine is the not the same as my machine and the same Dockerfile would produce two different results. Also having symlinks to /etc/paasswd would cause issues because it would link the host files and not your local files.

提交回复
热议问题