Skip to content

Instantly share code, notes, and snippets.

@zerbitx
Created September 12, 2016 21:04
Show Gist options
  • Save zerbitx/784790e4a2158a51e15e37f998362b41 to your computer and use it in GitHub Desktop.
Save zerbitx/784790e4a2158a51e15e37f998362b41 to your computer and use it in GitHub Desktop.
#!/bin/sh
# This solution was found at https://forums.docker.com/t/pinata-missing-in-latest-mac-beta-1-11-2-beta15/15541/22
BASEDIR=~/Library/Containers/com.docker.docker/Data/database/com.docker.driver.amd64-linux
DDIR=etc/docker
mkdir -p $BASEDIR/$DDIR
cd $BASEDIR
git reset --hard
# https://github.com/docker/docker/blob/ded74b0bb37d328a8c1a69f1f9b9aca2bba58199/network.go#L137
# Using one of the prescriptive blocks from docker itself.
# Add whatever other dockerd options you'd like to the json https://docs.docker.com/engine/reference/commandline/dockerd/
echo '{"bip":"10.42.42.1/16"}' > etc/docker/daemon.json
git add etc/docker/daemon.json
git commit -m "Updating daemon options"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment