Closed manueljesusrd closed 5 years ago
Can you try using https://index.docker.io/v1/
as the address for the Docker Hub registry instead of docker.io
?
And double-check that "$CONTAINER_REGISTRY_USERNAME_manueljesusdelgado"
and "$CONTAINER_REGISTRY_PASSWORD_manueljesusdelgado"
were correctly populated in the actual deployment.
I tried what you two said, and we obtained no successful results :( Anyway, we switched to Azure CR and now everything is just fine 👍 Thanks!
And double-check that
"$CONTAINER_REGISTRY_USERNAME_manueljesusdelgado"
and"$CONTAINER_REGISTRY_PASSWORD_manueljesusdelgado"
were correctly populated in the actual deployment.
Why do you use your name in the settings?
Try doing a docker login
with the credentials you have and then a docker pull
- this should show up any errors.
I've been all day dealing with a problem related to the deployment of custom modules in IoT Edge. I'm using a private Docker Container Registry (docker.io) as my container instead of Azure's, and I'm trying to deploy a custom module (the famous SampleModule) from Visual Studio Code. The problem is that once the deployment file has been pushed to Azure Portal, the custom module never gets deployed in my iot edge.
The process is:
I'm using Ubuntu 18.04, Visual Studio Code 1.38.1 (with all the latest Azure iot addons from the tutorials) and the latest versions of all Azure Iot components.
The output from the 'iot check' is:
I've made some research about what could be happening. I checked the container id from 'docker ps' and see the logPath to check it out while I deployed the module. This is what I could find:
As you can see, it seems to be a problem related to when iotedge should be login into Docker CR. I have username and password specified in the .env file in Visual Studio Code, and I'm perfectly able to push the image to the Docker CR from there. I'm also logged in from the Ubuntu terminal.
These are my json files related to the modules and the container registry:
modulse.json
and the piece of deploymet.template.json
Device (Host) Operating System
Ubuntu 18.04
Architecture
amd64
Container Operating System
Linux containers
Runtime Versions
iotedged
iotedge 1.0.8 (208b2204fd30e856d00b280112422130c104b9f0)
Edge Agent
1.0.0
Edge Hub
1.0.0
Docker
Additional Info
I've tried all the procedure with the Azure CR and it works fine. The problems seems to come only from when iotedge tries to login to Docker CR.