Forked from mkrakauer-rio/disable-full-sync-on-flush.sh
Created
June 20, 2017 10:57
-
-
Save michaelhood/e91165f985afe6885ffa581acf31b3cf to your computer and use it in GitHub Desktop.
Docker for Mac - Disable full disk sync on flush
This file contains 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
cd ~/Library/Containers/com.docker.docker/Data/database/ | |
git reset --hard | |
cat com.docker.driver.amd64-linux/disk/full-sync-on-flush | |
# if you see true, continue | |
echo false > com.docker.driver.amd64-linux/disk/full-sync-on-flush | |
cat com.docker.driver.amd64-linux/disk/full-sync-on-flush | |
# you should now see false | |
git add com.docker.driver.amd64-linux/disk/full-sync-on-flush | |
git commit -s -m "Disable flushing" | |
# wait for docker to restart | |
# if using v17.03 | |
cat com.docker.driver.amd64-linux/disk/on-flush | |
# if you see drive, continue | |
echo none > com.docker.driver.amd64-linux/disk/on-flush | |
git add com.docker.driver.amd64-linux/disk/on-flush | |
git commit -s -m "More Disable flushing" | |
# wait for docker to restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment