Created
September 8, 2017 16:38
-
-
Save muresan/64b7ee5e1c8e0c10cf953ecaad1a74b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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