question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Registry credentials with "https://registry_address" address doesn’t work

See original GitHub issue

Expected 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. image

Steps to Reproduce

  1. Create a new Edge device
  2. Make sure the address in registryCredentials has “https://” header and there’re modules from the private registry
  3. Deploy the deployment.json to the new Edge device
  4. 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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
arsingcommented, Mar 25, 2019

(For reference, the docker CLI does this. Not only does it allow the user to give a leading http:// or https://, it also allows the user to give a path component after the hostname and strips that too.)

0reactions
github-actions[bot]commented, Nov 4, 2019

This issue is being marked as stale because it has been open for 30 days with no activity.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found