This article explains how to install the Docker runner on Linux. The Docker runner is packaged as a minimal Docker image distributed on DockerHub, and is available for the following architectures:
Install Docker and pull the public image:
$ docker pull drone/drone-runner-docker:1
The Docker runner is configured using environment variables. This article references the below configuration options. See Configuration for a complete list of configuration options.
- provides the hostname (and optional port) of your Drone server. The runner connects to the server at the host address to receive pipelines for execution.
- provides the protocol used to connect to your Drone server. The value must be either http or https.
- provides the shared secret used to authenticate with your Drone server. This must match the secret defined in your Drone server configuration.
The below command creates a container and starts the Docker runner. Remember to replace the environment variables below with your Drone server details.
docker logs command to view the logs and verify the runner successfully established a connection with the Drone server.
$ docker logs runner INFO starting the server INFO successfully pinged the remote server