We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32062e6 commit bdd5575Copy full SHA for bdd5575
config/docker/config.go
@@ -7,7 +7,6 @@ import (
7
"fmt"
8
"io/ioutil"
9
"os"
10
- "strings"
11
)
12
13
const (
@@ -52,7 +51,7 @@ func (c *Config) SetCredHelper(registry, helper string) {
52
51
53
func (c *Config) CreateDockerConfigJson(credentials []RegistryCredentials) ([]byte, error) {
54
for _, cred := range credentials {
55
- if cred.Registry != "" && strings.Contains(cred.Registry, "docker") {
+ if cred.Registry != "" {
56
57
if cred.Username == "" {
58
return nil, fmt.Errorf("Username must be specified for registry: %s", cred.Registry)
0 commit comments