Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: One location, multiple Docker volumes, same path inside containers #420

Open
rheicide opened this issue Jan 7, 2025 · 0 comments

Comments

@rheicide
Copy link

rheicide commented Jan 7, 2025

If there are 2 containers with their volumes mounted at the same path like this:

services:
  app1:
    volumes:
      - volume-1:/data
    # ...

  app2:
    volumes:
      - volume-2:/data
    # ...

And the volumes are backed up with the same location like this:

locations:
  docker-volumes:
    from:
      - volume-1
      - volume-2
    type: volume
    # ...

Will volume-2's data overwrite volume-1's? Do we need to put them in different locations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant