mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
Do not fail when no docker registry auth is available
this amends the behaviour introduced with #2651 and allows pulling public images when docker.auth.helper is set
This commit is contained in:
@@ -1016,7 +1016,7 @@ func (d *DockerDriver) createImage(driverConfig *DockerDriverConfig, client *doc
|
||||
func (d *DockerDriver) pullImage(driverConfig *DockerDriverConfig, client *docker.Client, repo, tag string) (id string, err error) {
|
||||
authOptions, err := d.resolveRegistryAuthentication(driverConfig, repo)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("Failed to find docker auth for repo %q: %v", repo, err)
|
||||
d.logger.Printf("[WARN] Failed to find docker auth for repo %q: %v", repo, err)
|
||||
}
|
||||
|
||||
if authIsEmpty(authOptions) {
|
||||
|
||||
Reference in New Issue
Block a user