I am struggling hard to get Docker credentials to work for Nomad when using Azure Container Registry.
I have read
the docs so many times and still am beating my head against a wall. The only thing I can't use is the auth section in the task itself. Nomad needs to get the credentials to pull the image from it's environments.
I have tried this is the client servers configuration (saw this in a GitHub Issue somewhere)
plugin "docker" {
config {
auth {
config = "/root/.docker/config.json"
}
}
}
And this along with the docker-credentials-acr-linux executable in the path
plugin "docker" {
config {
auth {
helper = "acr-linux"
}
}
}
I have tried adding a `az acr login -n myregistry` to the SystemD task as a ExecStartPre directive and that says `Login Succeeded`. At this point, I am not sure how to overcome this... any help appreciated.