Skip to content

Instantly share code, notes, and snippets.

@muresan
Created September 8, 2017 16:38
Show Gist options
  • Select an option

  • Save muresan/64b7ee5e1c8e0c10cf953ecaad1a74b0 to your computer and use it in GitHub Desktop.

Select an option

Save muresan/64b7ee5e1c8e0c10cf953ecaad1a74b0 to your computer and use it in GitHub Desktop.
rancher:
services_include:
ubuntu-console: true
services:
iptables:
image: busybox
net: host
uts: host
pid: host
ipc: host
privileged: true
volumes_from:
- user-volumes
volumes:
- /sbin/iptables:/usr/bin/iptables:ro
- /var/run/docker.sock:/var/run/docker.sock
- /opt/rancher/init:/opt/rancher/init
labels:
- io.rancher.os.scope=system
- io.rancher.os.after: wait-for-network, cloud-init
command: iptables -t nat -I PREROUTING -p tcp -d 169.254.169.254 --dport 80 -j DNAT --to-destination 172.17.0.1:9999 -i docker0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment