Skip to content

Instantly share code, notes, and snippets.

@kortina
Created December 1, 2016 01:30
Show Gist options
  • Star 37 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save kortina/67ad6e40e40d5199c3507cdad0c9a12c to your computer and use it in GitHub Desktop.
Save kortina/67ad6e40e40d5199c3507cdad0c9a12c to your computer and use it in GitHub Desktop.
Docker for Mac fsync Perf Patch
#!/bin/bash
# Tune fsync perf for docker mac per
# https://github.com/docker/for-mac/issues/668
# NB: You must be on Docker 1.12.2-rc1-beta27 or greater
cd ~/Library/Containers/com.docker.docker/Data/database/
f="com.docker.driver.amd64-linux/disk/full-sync-on-flush"
git reset --hard
cat $f
echo "false" > $f
git add $f && git commit -s -m "Disable flushing"
echo "You should now restart Docker for Mac."
@mityukov
Copy link

cd: no such file or directory: /Users/pilat/Library/Containers/com.docker.docker/Data/database/

@henriquecholo
Copy link

I'm here also trying to make my docker faster on Mac. The directory in my case was vms and not database but that only solves the amount of disk space and there is no git associated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment