-
Notifications
You must be signed in to change notification settings - Fork 184
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
Image not found when reading a public image from docker hub #229
Comments
I'm encountering something similar since last night when trying to access |
I just had this happen this morning and was about to raise an issue. I'm wondering if Docker have deprecated I updated to
|
You are right, I will put data "docker_registry_image" "ubuntu" {
name = "index.docker.io/library/ubuntu:latest"
}
output "sha" {
value = data.docker_registry_image.ubuntu.sha256_digest
} |
I am looking for some official confirmation that the new endpoint is |
It's very difficult to find such confirmation, I couldn't find any hostname that actually works in the official documentation. |
During the past hour, I just realised that so many project are fixing their repos to remove this old URL (doing a global search for issues containing "registry.hub.docker.com" gives a taste of the impact). I noticed that some people are working with:
From this comment docker/hub-feedback#2113 (comment)_ , we can read:
He also recommend to use registry-1.docker.io as registry, but I think we should use the same registry used by our docker clients: index.docker.io |
I went ahead with |
Per docker/hub-feedback#2113 (comment) registry.hub.docker.com should be working again (they rolled back some changes), and they are investigating what the right value to use going forward is. |
Community Note
Terraform (and docker Provider) Version
Terraform version :
Docker for Mac version :
Affected Resource(s)
docker_registry_image
Terraform Configuration Files
Debug Output
https://gist.github.com/adam-lebon/27771eb13b0b4966b354e9a6f7d2600a
Expected Behaviour
The request to the docker registry should succeed
Actual Behaviour
The provider cannot read the manifest of the requested image.
The docker hub returns a 404 not found error error. Even if it is a public image.
In the first place, I thought the issue was from the docker hub. But I can't find anything related to the docker hub.
Steps to Reproduce
docker_registry_image
terraform plan
Important Factoids
Nothing special :
curl -vL https://registry.hub.docker.com/v2/library/ubuntu/manifest/latest
The text was updated successfully, but these errors were encountered: