Skip to content

Commit 4483966

Browse files
committed
Merge pull request #5 from mumoshu/note-another-way-to-mock-metadata-service
Note on how to mock metadata service without installing iptables on docker images
2 parents a829f1c + cd07954 commit 4483966

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ before starting your program:
2222

2323
iptables -t nat -A OUTPUT -d 169.254.169.254 -j DNAT --to-destination ${HOST}
2424

25+
Or if you don't want to modify your docker image, on your docker host (e.g. the one created with docker-machine):
26+
27+
iptables -t nat -A PREROUTING -d 169.254.169.254 -j DNAT --to-destination ${HOST}
28+
2529
## Development
2630

2731
### Configuration

0 commit comments

Comments
 (0)