Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Docker for Mac - Disable full disk sync on flush
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

jbosse commented Mar 8, 2017

also now with 17.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"
Owner

mkrakauer-rio commented Apr 14, 2017

@jbosse Updated, thank you!

hequ commented May 3, 2017

Yes! Thank you for this! This made my day.

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