Skip to content

Instantly share code, notes, and snippets.

@stevemcquaid
Last active October 11, 2016 04:22
Show Gist options
  • Select an option

  • Save stevemcquaid/21a698d066720b92e130c4074ea023f8 to your computer and use it in GitHub Desktop.

Select an option

Save stevemcquaid/21a698d066720b92e130c4074ea023f8 to your computer and use it in GitHub Desktop.
#!/bin/bash
# to run, enter this command:
# bash <(curl -L http://x.co/dockerbip)
echo "# /etc/sysconfig/docker-network" > /etc/sysconfig/docker-network
echo 'DOCKER_NETWORK_OPTIONS="--fixed-cidr=192.168.176.0/21 --bip=192.168.176.1/21"' >> /etc/sysconfig/docker-network
systemctl stop docker
systemctl daemon-reload
systemctl start docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment