How Install Drone-VM in your Docker Instance Machine

To install Drone-vm, you can follow these steps:

  1. Check if you have Docker installed on your system. You can do this by running the following command in the terminal:
docker --version

If Docker is already installed, you will see the installed Docker version. Otherwise, you will need to install Docker before proceeding.

  1. Download the Drone-vm Docker image. To do this, run the following command in the terminal:
docker pull drone/drone-runner-vm

This will download the Drone-vm Docker image to your system.

  1. Create a configuration file for Drone-vm. You can use the following template:
DRONE_RPC_PROTO=https
DRONE_RPC_HOST=<your IP address>
DRONE_RPC_SECRET=<your shared secret>
DRONE_RUNNER_CAPACITY=2
DRONE_RUNNER_NAME=runner-vm

Replace <your IP address> with the IP address of your Drone server and <your shared secret> with the shared secret you set during the Drone installation.

  1. Start the Drone-vm. To do this, run the following command in the terminal:
docker run -d \
  --name runner-vm \
  --restart always \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /var/lib/drone-runner-docker:/data \
  -e DRONE_RPC_PROTO=https \
  -e DRONE_RPC_HOST=<your IP address> \
  -e DRONE_RPC_SECRET=<your shared secret> \
  -e DRONE_RUNNER_CAPACITY=2 \
  -e DRONE_RUNNER_NAME=runner-vm \
  drone/drone-runner-vm:latest

This will start the Drone-vm with the provided settings.

With these steps, you should have Drone-vm installed and running on your system.