How to create separate volumes for each container in docker compose

前端 未结 1 1219
野趣味
野趣味 2021-01-27 17:31

I have created a docker image for which I want to run multiple containers. This docker image is dependent on few things which will remain same for all the container

相关标签:
1条回答
  • 2021-01-27 18:07

    On the host each container should have its own volume. They can be mounted in the container at the same path. Each container can use the same image and will see its dedicated volume on the host under the same name.

    0 讨论(0)
提交回复
热议问题