Test docker image as part of the build (docker in docker)

I have a build which produces a roofs file system which I need to boot for additional configuration.
To boot the rootfs I use docker and then SSH to it for configuration.
To access docker inside drone docker I use the following configuration:

privileged: true
network_mode: host
  - /usr/bin/docker:/usr/bin/docker
  - /var/run/docker.sock:/var/run/docker.sock

Then with docker I import rootfs, run /sbin/init, wait for SSH, run few SSH commands, stop container.

It works great, but I would like to know if it is possible to get drone help for that?


  1. service which can use rootfs from previous steps
  2. same docker network as other steps
  3. Automatic cleanup of the service docker container and image

Thank you

1 Like