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

Mac: Check if possible replace instead override a volume on a container #90

Open
capynet opened this issue Nov 14, 2018 · 0 comments
Open

Comments

@capynet
Copy link
Contributor

capynet commented Nov 14, 2018

For example if we have this volume:

apache:
  volumes:
    - ./:/var/www/html

And we want replace "- ./:/var/www/html" with

apache:
  volumes:
    - docker-sync:/var/www/html/:nocopy

the result will be:

apache:
  volumes:
    - ./:/var/www/html
    - docker-sync:/var/www/html/:nocopy

Since the override files at docker-compose does not replace volumes, adds new on each override.

We need to find the way to replace the original volume ( - ./:/var/www/html ) with - docker-sync:/var/www/html/:nocopy to allow mac to not have two volumes. It impacts very highly on performance terms.

@capynet capynet changed the title Check if possible replace instead override a volume on a container Mac: Check if possible replace instead override a volume on a container Nov 14, 2018
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