Hello there,
I’m new to drone, I installed it in link with bitbucket server private docker registry / docker auth.
The service (latest) is provided by a Docker container running on a single swarm node.
Following the documentation and google I managed to configure all links between bitbucket / drone / registry / auth.
I’m facing an issue that I think is a beginner problem:
i want to create the first image of a repository for a specific branch in the registry, of course drone cannot find the manifest for this image and the build failed.
here is the .drone.yml:
kind: pipeline
type: docker
name: service-explorer
steps:
the build error message is:
service-explorer: Error response from daemon: manifest for private_registry/ZZZ/zzz:latest not found: manifest unknown: manifest unknown
if you could help understandind the problem, it would be great!
Thank you
thank you for your quick reply,
for the config:
For the logs, it would also help me because nor the docker logs drone-server, nor in the docker logs drone-runners, i got nothing, i can do whatever you need (command lines or else)
I only see the error in the drone dashboard and the complete error is: service-explorer: Error response from daemon: manifest for private_registry/ZZZ/zzz:latest not found: manifest unknown: manifest unknown
The error indicates that private_registry/ZZZ/zzz:latest cannot be pulled from the registry. This error comes from Docker. You can inspect your Docker daemon logs on the host machine for more details as to why Docker cannot pull your image. Ultimately it is Docker that pulls the image, not Drone.
août 25 13:32:01 ns3139229 dockerd[6330]: time="2020-08-25T13:32:01.763890263Z" level=info msg="Attempting next endpoint for pull after error: manifest unknown: manifest unknown"
Ok, i can understand why drone doesn’t manage to pull image in the local cache, this is because the image doe not exists in the registry. So the question is, is there a configuration to force the creation of the first image in the registry from the build pipeline?
Ok, i can understand why drone doesn’t manage to pull image in the local cache, this is because the image doe not exists in the registry. So the question is, is there a configuration to force the creation of the first image in the registry from the build pipeline?
The image that you define in the step must be a valid image. In your sample yaml, private_registry/ZZZ/zzz:latest is a plugin that you have defined and that you want Drone to pull and run. It sounds like perhaps there is a misunderstanding here.
It looks like you are trying to build and publish a Docker image? If so, you should be using the Docker plugin as the image as shown here.
ohh, i did not understand the image configuration.
in your example, does it create the docker image from a dockerfile and push it in the registry?
that is all I want in fact