Registry credentials with "https://registry_address" address doesn’t work
See original GitHub issueExpected Behavior
When using “https://***.azurecr.io” as registry address, edgeagent should be able to authenticate and pull image successfully as docker login accepts such kind of address. Here’s a sample config snippet in deployment.json (removed password):
"registryCredentials": {
"chaoyitest": {
"username": "chaoyitest",
"password": "…",
"address": "https://chaoyitest.azurecr.io"
}
}
Current Behavior
Edgeagent cannot pull image from private registry with unauthorized error.
Steps to Reproduce
- Create a new Edge device
- Make sure the address in registryCredentials has “https://” header and there’re modules from the private registry
- Deploy the deployment.json to the new Edge device
- Check iotedge logs
Context (Environment)
Device (Host) Operating System
I created a VM using Ubuntu Server 16.04 LTS + Azure IoT Edge runtime
VM image from Azure marketplace as Edge device.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Troubleshoot login to registry - Azure Container Registry
Unable to authenticate using AAD or admin login credentials. Unable to access registry from Azure Kubernetes Service, Azure DevOps, or another ...
Read more >Test an insecure registry
Substitute the address of your insecure registry for the one in the example. With insecure registries enabled, Docker goes through the following steps:....
Read more >Container Registry can't be reacher, but shows in WebUI
Struggling a bit with the built in container registry however, as I can't ... registry.gitlab.com to the internal IP address and port 5050....
Read more >How can I tell if I'm logged in to a private Docker registry ...
if docker login worked, you will find a .docker folder on your home directory ( ~/.docker/ ), with a config.json file with credentials...
Read more >Can't push to gitlab registry, even though authentication via ...
This happens in Gitlab CI (auth via gitlab-ci-token) and in my dev environment (auth via gitlab credentials). Steps to reproduce. My gitlab.rb.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
(For reference, the docker CLI does this. Not only does it allow the user to give a leading
http://
orhttps://
, it also allows the user to give a path component after the hostname and strips that too.)This issue is being marked as stale because it has been open for 30 days with no activity.