this post was submitted on 25 May 2024
3 points (80.0% liked)
Docker
39 readers
1 users here now
Docker is an open-source project to easily create lightweight, portable, self-sufficient containers from any application. The same container that a developer builds and tests on a laptop can run at scale, in production, on VMs, bare metal, OpenStack clusters, public clouds and more.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Pretty sure you only want to define it once?
You create a volume, then map the mount into each service which needs to access it.
I am unsure whether there is performance differences? But the second one looks “wrong”
specific example on sharing data between containers https://www.baeldung.com/ops/docker-share-volume-multiple-containers
Sometimes I get anxious and overthink things. Thank you