You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use delegated flag to speedup volumes on macOS #299
That is a run time specified option and nothing we can add to the Dockerfiles. It could be possible to mention in the Official Image docs on the Docker Hub, but it is really a system specific option and probably could cause data loss in some situations.
Maybe Docker should mention it prominently in the Docker for Mac docs or a popup when using shared volumes on Docker for Mac itself.
Closing since this is not something we can address in this git repo.
@yosifkit
I thought this repo can provide an environment variable to set a corresponding flag to the default volume.
Otherwise user should create a volume and map it to the container with something like
We can only provide the VOLUME as a "this is the folder you should save for persistence" and cannot give it any sort of arguments. What you suggest is almost exactly what users must do to take advantage of the Consistency flag. As suggested it would have no effect since it is not sharing the volume to the Mac anyway. To take advantage, they would need to be using a folder from their Mac:
$ docker run -v /local/directory/on/mac/:/var/lib/postgresql/data:delegated postgres
Activity
yosifkit commentedon Jun 13, 2017
That is a run time specified option and nothing we can add to the Dockerfiles. It could be possible to mention in the Official Image docs on the Docker Hub, but it is really a system specific option and probably could cause data loss in some situations.
Maybe Docker should mention it prominently in the Docker for Mac docs or a popup when using shared volumes on Docker for Mac itself.
Closing since this is not something we can address in this git repo.
TriAnMan commentedon Jun 13, 2017
@yosifkit
I thought this repo can provide an environment variable to set a corresponding flag to the default volume.
Otherwise user should create a volume and map it to the container with something like
And it would be hard to override this flag for a default volume for already created containers.
yosifkit commentedon Jun 13, 2017
We can only provide the VOLUME as a "this is the folder you should save for persistence" and cannot give it any sort of arguments. What you suggest is almost exactly what users must do to take advantage of the
Consistencyflag. As suggested it would have no effect since it is not sharing the volume to the Mac anyway. To take advantage, they would need to be using a folder from their Mac:$ docker run -v /local/directory/on/mac/:/var/lib/postgresql/data:delegated postgresjwg2s commentedon Oct 17, 2017
@yosifkit can this performance benefit be gained by specifying it in a
docker-compose.ymlfile, like so:We're experiencing slow database response times on local development with Docker for Mac Version 17.09.0-ce-mac35 and wondering if there's some tuning we could do without something more dramatic like http://docker-sync.io/
tianon commentedon Oct 17, 2017
@jwg2s that's a volume (
app-pgdata), not a bind mount; to quote @yosifkit from above:(ie, a bind mount, not just a volume)