Skip to content

Commit

Permalink
workaround: full-sync-on-flush
Browse files Browse the repository at this point in the history
  • Loading branch information
vinta committed Jan 22, 2017
1 parent 569a30f commit 7763b02
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions playbooks/roles/docker/files/fsync-patch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# https://github.com/docker/for-mac/issues/668
# You must be on Docker 1.12.2-rc1-beta27 or greater

cd ~/Library/Containers/com.docker.docker/Data/database/
filename="com.docker.driver.amd64-linux/disk/full-sync-on-flush"
git reset --hard
cat $filename
echo "false" > $filename
git add $filename && git commit -s -m "Disable flushing"
echo "You should now restart Docker for Mac"

0 comments on commit 7763b02

Please sign in to comment.