cookiecutter-django icon indicating copy to clipboard operation
cookiecutter-django copied to clipboard

support docker-sync for mac users

Open hoffmannkrzysztof opened this issue 7 years ago • 6 comments

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 avatar Sep 12 '18 17:09 hoffmannkrzysztof

@hoffmannkrzysztof could the delegated flag facilitate in healing that wound somehow?

webyneter avatar Sep 12 '18 17:09 webyneter

@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 avatar Sep 12 '18 18:09 hoffmannkrzysztof

@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.

webyneter avatar Sep 12 '18 19:09 webyneter

Every mac users suffer using docker on their macs

  1. I am a Mac & Docker user. I didn't experience any slowness whatsoever with sharing files from docker containers. How could you reproduce exactly?

  2. docker-sync seems to support windows/linux as well, why not support them?

  3. Shouldn't it be an optional feature, for added complexity?

sfdye avatar Sep 14 '18 03:09 sfdye

@sfdye

  1. 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
  2. Of course, docker-sync support Windows and Linux and can be used.
  3. This addon is optional. If you don't want sync when you will use regular docker-compose

hoffmannkrzysztof avatar Sep 16 '18 09:09 hoffmannkrzysztof

I used to have that same issue until I started using docker-machine, try it, is worth the shot.

elyak123 avatar Apr 10 '19 19:04 elyak123

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.

browniebroke avatar Jan 29 '23 19:01 browniebroke