Search code examples
dockerdockerhubazure-iot-edgemicrosoft-custom-vision

What is the correct upload URL for a Dockerhub repo


I am following the instructions for the custom-vision service on raspberry-pi on IOT edge.

I have reached step 3, where in VS Code I am executing Build and Push to IOT Edge Solution and this is triggering the following command:

docker build  --rm -f "/Users/myname/Dropbox/Dev/azure/custom-vision/Custom-vision-service-iot-edge-raspberry-pi/modules/CameraCapture/arm32v7.Dockerfile" -t registry.hub.docker.com/v1/repositories/myname/iot-hub-1/cameracapture:0.2.7-arm32v7 "/Users/myname/Dropbox/Dev/azure/custom-vision/Custom-vision-service-iot-edge-raspberry-pi/modules/CameraCapture" 
&& docker push registry.hub.docker.com/v1/repositories/myname/iot-hub-1/cameracapture:0.2.7-arm32v7 
&& docker build  --rm -f "/Users/myname/Dropbox/Dev/azure/custom-vision/Custom-vision-service-iot-edge-raspberry-pi/modules/ImageClassifierService/arm32v7.Dockerfile" -t registry.hub.docker.com/v1/repositories/myname/iot-hub-1/imageclassifierservice:0.2.4-arm32v7 "/Users/myname/Dropbox/Dev/azure/custom-vision/Custom-vision-service-iot-edge-raspberry-pi/modules/ImageClassifierService" 
&& docker push registry.hub.docker.com/v1/repositories/myname/iot-hub-1/imageclassifierservice:0.2.4-arm32v7

Which is failing with 404 - page not found.

I also tried using cloud.docker.com/repository/registry-1.docker.io/myname/iot-hub-1 but this gave me a different error:

invalid argument "cloud.docker.com/repository/docker/myname/iot-hub-1:latest/cameracapture:0.2.7-arm32v7" for "-t, --tag" flag: invalid reference format

Can anyone assist with the correct URL path, or some the additional steps i need to uploading the containers to my docker hub repository?


Solution

  • I couldn't find the correct URL for dockerhub, but Azure Container Registry was able to resolve my problem.

    Details of the URL are here: Raspberry PI / IOTEdge failing to pull from Azure Container Registry