0
0
mirror of https://github.com/thegeeklab/wp-docker-buildx.git synced 2024-11-22 20:20:39 +00:00

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