Skip to content

Commit 64f8235

Browse files
fuchiaoaeneasr
authored andcommitted
Add dns option to RunOptions (#147)
Signed-off-by: Chang Fu Chiao <[email protected]>
1 parent 3966127 commit 64f8235

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dockertest.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ type RunOptions struct {
172172
ExtraHosts []string
173173
CapAdd []string
174174
SecurityOpt []string
175+
DNS []string
175176
WorkingDir string
176177
NetworkID string
177178
Labels map[string]string
@@ -284,6 +285,7 @@ func (d *Pool) RunWithOptions(opts *RunOptions) (*Resource, error) {
284285
CapAdd: opts.CapAdd,
285286
SecurityOpt: opts.SecurityOpt,
286287
Privileged: opts.Privileged,
288+
DNS: opts.DNS,
287289
},
288290
NetworkingConfig: &networkingConfig,
289291
})

0 commit comments

Comments
 (0)