Skip to content

Instantly share code, notes, and snippets.

@ianblenke
Last active August 29, 2015 14:15
Show Gist options
  • Save ianblenke/a12273fa694af4217297 to your computer and use it in GitHub Desktop.
Save ianblenke/a12273fa694af4217297 to your computer and use it in GitHub Desktop.
sudo bash -c 'mkdir -p /etc/systemd/system/docker.service.d/; cat <<EOF > /etc/systemd/system/docker.service.d/50-insecure-registry.conf
[Service]
Environment="DOCKER_OPTS=--insecure-registry 10.0.0.0/8 --insecure-registry 172.16.0.0/12 --insecure-registry 192.168.0.0/16"
EOF
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment