mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-22 10:10:39 +00:00
Bip support for docker
This commit is contained in:
parent
0b2faea192
commit
cd124c3ac5
4
main.go
4
main.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user