-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker driver consistently fails to pull image from GCE repo, but docker pull succeeds #1119
Comments
@cbednarski We suspect the client library might be problem, perhaps an incompatibility with the version of Docker. Any advice on debugging? We're not scared to dig into the Go. |
@bradobro So I don't have a lot of experience with GCE, I have a few questions - Does GCE provide with an auth config file? We allow users to specify the auth config file in the client options with |
@diptanu Yes, it does supply an auth config, usually in Here's ours: {
"auths": {
"https://gcr.io": {
"auth": "<REDACTED BASE 64 CHARS>=",
"email": "[email protected]"
}
}
} |
@diptanu We found the problem in our jobfile. The task config needs to have config {
image = "gcr.io/kindrid-nomad-feasibility-study/api3:3.0.17-alpha.7"
ssl = true # THE MISSING PIECE
auth {server_address = "https://gcr.io"}
port_map {main = 8091}
} Then the pull from GCE's provided container repository works. |
@bradobro Sorry we missed documenting that, I have added that in master now. |
Great, thanks @diptanu! |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad versions
The output and experience detailed below is from Nomad v0.3.2-rc2.
Operating system and Environment details
Google Compute Engine clusters of fresh Debian Jessie VMs: one cluster with three Nomad servers and five Nomad agents, the other with one server and three agent vms.
Docker container repository is the provided by Google Cluster Engine with each project. I see some similar issues pulling from the AWS container repository.
Docker version info for all machines:
Issue
Nomad consistently returns 403 errors trying to pull new images while
docker pull
succeeds.This may be related to fsouza/go-dockerclient#498
Reproduction steps
docker pull <image tag>
.Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
Nomad Client Machine Command Line (after failure).
We believe this rules our a repository or docker daemon problem, making us suspect the Nomad driver or the docker client library it uses.
Job file (if appropriate)
The text was updated successfully, but these errors were encountered: