Skip to content

Commit 7c84209

Browse files
committed
Merge pull request #140 from lanwen/patch-1
add template example for dnsmasq hosts list
2 parents 7bc7ca9 + 16a57c9 commit 7c84209

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/dnsmasq.hosts.conf.tmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{$domain := "docker.company.com"}}
2+
{{range $key, $value := .}}
3+
# {{ $value.Name }} ({{$value.ID}} from {{$value.Image.Repository}})
4+
{{$value.IP}} {{ $value.Name }}.{{$domain}}
5+
{{$value.IP6Global}} {{ $value.Name }}.{{$domain}}
6+
7+
{{end}}

0 commit comments

Comments
 (0)