hello
I have try to update one nomad node to 1.9.3 and I get a issue to download docker image
I use a private registry to cache image on my local network
example
config {
image = "ghcr.service.consul:5000/paperless-ngx/paperless-ngx"
ports = ["http"]
}
since I have update to 1.9.4 I have an error during image pull:
Failed to pull `ghcr.service.consul:5000/paperless-ngx/paperless-ngx`: invalid reference format
works when try to pull directly on docker
docker pull ghcr.service.consul:5000/paperless-ngx/paperless-ngx
rollback to 1.8.4 and jobs work again…
does someone have an idea?
try to test docker SDK directly for testing
func main() {
ctx := context.Background()
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
if err != nil {
panic(err)
}
defer cli.Close()
out, err := cli.ImagePull(ctx, "docker.service.consul:5000/library/redis", image.PullOptions{})
if err != nil {
panic(err)
}
defer out.Close()
io.Copy(os.Stdout, out)
}
and pull correctly image
bug found issue come because I don’t put any tag and use custom port number and fonction get last “:” to identify tag