cookiecutter-django
cookiecutter-django copied to clipboard
support docker-sync for mac users
Description
Every mac users suffer using docker on their macs. Sharing files through containers is very slow.
Rationale
Only mac users need this. Other users don't care :)
Use case(s) / visualization(s)
If you are using many static files in containers loading speed of each request decrease.
@hoffmannkrzysztof could the delegated flag facilitate in healing that wound somehow?
@webyneter I not sure if I understand you clearly. But docker-sync helps a lot of users who using mac while developing. Take a look at the official documentation: http://docker-sync.io/. I am using this solution and see only pros.
@hoffmannkrzysztof I'm not working on Mac myself, but one of my fellow colleagues has used this approach to mitigate the caching issue (at least, I believe it's about caching):
volumes:
- .:/app:delegated # https://docs.docker.com/docker-for-mac/osxfs-caching/
Anyway, I don't have anything to say here as Linux is my current setup.
Every mac users suffer using docker on their macs
-
I am a Mac & Docker user. I didn't experience any slowness whatsoever with sharing files from docker containers. How could you reproduce exactly?
-
docker-syncseems to support windows/linux as well, why not support them? -
Shouldn't it be an optional feature, for added complexity?
@sfdye
- This issue on mac is related to a large number of I/O operations. The easy way to reproduce this issue is by using a large number of assets. Take a look for more info: https://github.com/docker/for-mac/issues/77
- Of course, docker-sync support Windows and Linux and can be used.
- This addon is optional. If you don't want sync when you will use regular docker-compose
I used to have that same issue until I started using docker-machine, try it, is worth the shot.
Docker for mac has improved the file sharing implementation with VirtuoFS:
https://www.docker.com/blog/speed-boost-achievement-unlocked-on-docker-desktop-4-6-for-mac/
In my experience it's much faster, so I'm closing this, I consider it no longer needed.