mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-22 10:10:39 +00:00
Merge pull request #19 from Bugagazavr/bip-support
Bip support for docker
This commit is contained in:
commit
773b5a2a9b
1
DOCS.md
1
DOCS.md
@ -10,6 +10,7 @@ The following parameters are used to configure this plugin:
|
||||
* `force_tag` - replace existing matched image tags
|
||||
* `insecure` - enable insecure communication to this registry
|
||||
* `mirror` - use a mirror registry instead of pulling images directly from the central Hub
|
||||
* `bip` - use for pass bridge ip
|
||||
* `storage_driver` - use `aufs`, `devicemapper`, `btrfs` or `overlay` driver
|
||||
* `save` - save image layers to the specified tar file (see [docker save](https://docs.docker.com/engine/reference/commandline/save/))
|
||||
* `file` - absolute / relative destination path
|
||||
|
4
main.go
4
main.go
@ -33,6 +33,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"`
|
||||
@ -96,6 +97,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