Drone CI with Podman

Installing Podman

Install the podman and podman-docker packages. E.g. on a Debian based System:

apt install podman podman-docker
pip3 install podman-compose
[registries.search]
registries = ['quay.io', 'docker.io']

Configuring Drone CI

Drone CI uses a mapping of the Docker Socket. This mapping has to be changed so that Drone CI thinks that Podman is our Docker instance.

systemctl status podman.socket
volumes:
- '/run/podman/podman.sock:/var/run/docker.sock'
sudo podman run -d \
-e DRONE_RPC_PROTO="https" \
-e DRONE_RPC_HOST="YOURDOMAIN" \
-e DRONE_RPC_SECRET="YOUR_SECRET" \
-e DRONE_RUNNER_CAPACITY=2 \
-e DRONE_RUNNER_NAME="NAME" \
--restart always \
--name runner \
-v /run/podman/podman.sock:/var/run/docker.sock \
docker.io/drone/drone-runner-docker

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Christoph Miksche

Christoph Miksche

3 Followers

Software Developer and Investor from Germany. Writing about Software, Tech and Investments.