Skip to content

Instantly share code, notes, and snippets.

@zekus
Created May 9, 2017 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zekus/40ff326e6a98a19abd008f4b8d70081c to your computer and use it in GitHub Desktop.
Save zekus/40ff326e6a98a19abd008f4b8d70081c to your computer and use it in GitHub Desktop.
Docker-for-Mac patches
#!/bin/bash
# ref: https://github.com/docker/for-mac/issues/668
set -e
cd ~/Library/Containers/com.docker.docker/Data/database
echo -n "Current full-sync-on-flush setting: "
cat ./com.docker.driver.amd64-linux/disk/full-sync-on-flush
echo
echo -n "Current on-flush setting: "
cat ./com.docker.driver.amd64-linux/disk/on-flush
echo
echo -n false > ./com.docker.driver.amd64-linux/disk/full-sync-on-flush
echo -n none > ./com.docker.driver.amd64-linux/disk/on-flush
git add ./com.docker.driver.amd64-linux/disk/full-sync-on-flush
git add ./com.docker.driver.amd64-linux/disk/on-flush
git commit -s -m "disable flushing"
echo "Docker should restart by itself now."
# ps aux | grep docker.hyperkit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment