Having Docker access External files

后端 未结 3 569
南方客
南方客 2020-12-03 18:05

I am interested in having Docker have access to external files, but I do not wish to include them as a volume. The files that I need access to will change over time, and th

3条回答
  •  没有蜡笔的小新
    2020-12-03 18:54

    It sounds like mounting a host directory in the container is what you're looking for. You won't have to restart the container to pick up changes to the mounted directory. Link to relevant docs.

提交回复
热议问题