Created
May 9, 2017 10:49
-
-
Save zekus/40ff326e6a98a19abd008f4b8d70081c to your computer and use it in GitHub Desktop.
Docker-for-Mac patches
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 | |
# 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