Bip support for docker

This commit is contained in:
Kirilll Zaycev 2015-11-28 00:27:01 +03:00
parent 0b2faea192
commit cd124c3ac5

View File

@ -32,6 +32,7 @@ type Docker struct {
Tag StrSlice `json:"tag"`
File string `json:"file"`
Context string `json:"context"`
Bip string `json:"bip"`
Dns []string `json:"dns"`
Load string `json:"load"`
Save Save `json:"save"`
@ -95,6 +96,9 @@ func main() {
if len(vargs.Mirror) != 0 {
args = append(args, "--registry-mirror", vargs.Mirror)
}
if len(vargs.Bip) != 0 {
args = append(args, "--bip", vargs.Bip)
}
for _, value := range vargs.Dns {
args = append(args, "--dns", value)