I’ve not found in the documentation how i can deploy a docker image from a private registry.
I’ve set up a pipeline which builds a docker image and pushes it via docker plugin to my registry.
What i want to achieve is a automated deployment when master branch is pushed through git.
Here is my .drone.yml:
The commands in your pipeline step are executed inside the specified docker image (this means, per your example, docker run is executed inside the my_registry/test/drone container). The above error therefore indicates you are attempting to execute a docker command inside a container that does not have docker installed.
You could get it working as well with a docker-in-docker image or with a drone exec pipeline.
From a security point of view, I would not recommend doing so. Allowing docker to run from inside a drone pipeline basically allows root access. That’s why you have to set a repo to trusted for it to work (for doid). I would also immediately set the protected mode which requires a signature on your pipeline.