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
kind: pipeline type: docker name: build drone demo steps: - name: build image: plugins/docker settings: username: from_secret: REGISTRY_USER password: from_secret: REGISTRY_PASSWORD storage_driver: vfs registry: my_registry repo: my_registry/test/drone tags: - latest - name: deploy pull: if-not-exists image: my_registry/test/drone settings: username: from_secret: REGISTRY_USER password: from_secret: REGISTRY_PASSWORD commands: - docker run -d -p 4444:80 --name drone-test my_registry/test/drone image_pull_secrets: - dockerconfig
When I pull the image and run the
docker run-command, works fine. Drone just give me this error:
docker run -d -p 4444:80 --name drone-test my_registry/test/drone /usr/drone/bin/init: line 17: docker: not found
I’ve no clue what this means and where to check for more detailed logs.
Thanks for the help and pointing to a documentation is highly appreciated!