I’m trying to Pre-provisioning docker Containers on a docker image. It works successfully in most of the cases when I use docker images available on Docker hub, but I struggle to use local images.
But when I run “torizoncore-builder build”, I meet this error :
Starting DIND container
Using Docker host "tcp://127.0.0.1:22376"
Connecting to Docker Daemon at "tcp://127.0.0.1:22376"
Fetching container image local_image:1.0
Stopping DIND container
Removing output directory 'image' due to build errors
Error: Error: container images download failed: 404 Client Error for https://127.0.0.1:22376/v1.40/images/create?tag=1.0&fromImage=local_image&platform=linux%2Farm%2Fv7: Not Found ("pull access denied for local_image, repository does not exist or may require 'docker login': denied: requested access to the resource is denied")
does it exists any solution to my issue ? It’s important for me to be independant from docker hub.
I just tried again after running the "docker login command but it still don’t work. I have the same error message :
Starting DIND container
Using Docker host "tcp://127.0.0.1:22376"
Connecting to Docker Daemon at "tcp://127.0.0.1:22376"
Fetching container image local_image:1.0
Stopping DIND container
Removing output directory 'image' due to build errors
Error: Error: container images download failed: 404 Client Error for https://127.0.0.1:22376/v1.40/images/create?tag=1.0&fromImage=local_image&platform=linux%2Farm%2Fv7: Not Found ("pull access denied for local_image, repository does not exist or may require 'docker login': denied: requested access to the resource is denied")
When you say “local” image do you mean local as in the image only exists on your PC, or local as in it’s located in a local container registry on your PC?
In the first case, any container you bundle needs to be in some kind of container registry. Whether it be Docker Hub or something else. If it’s the second case, then you need to specify the alternative registry in the image field of your docker-compose file.