Allow skipping TLS verification while publishing (#65)

Why this is necessary: when using a local docker registry, users may not
want to support https, or there may be other troubles not allowing
verifiable TLS support.

This commit adds this functionality by adding an `--insecure-registry`
flag.
This commit is contained in:
tanner-bruce
2019-07-24 10:58:10 -07:00
committed by jonjohnsonjr
parent 3a0e70e520
commit 48afd62710
4 changed files with 26 additions and 7 deletions
+7
View File
@@ -80,3 +80,10 @@ func WithTags(tags []string) Option {
return nil
}
}
func Insecure(b bool) Option {
return func(i *defaultOpener) error {
i.insecure = b
return nil
}
}