Forked from kortina/docker-for-mac-fsync-perf-patch.sh
Created
January 12, 2017 12:18
-
-
Save m3dwards/e825c81bcdc3923d31523fee57553510 to your computer and use it in GitHub Desktop.
Docker for Mac fsync Perf Patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment