testcontainers / dind-drone-plugin

Plugin for Drone CI v0.8+ to enable use of Testcontainers using Docker-in-Docker
Apache License 2.0
31 stars 19 forks source link

Set DOCKER_HOST to use TCP to connect to daemon #5

Closed rnorth closed 5 years ago

rnorth commented 5 years ago

The combined DinD/sidecar networking model breaks non-Testcontainers things which rely on the assumption that 'use of unix socket' == 'networking on localhost'

This change introduces a local TCP socket for the docker daemon, with DOCKER_HOST being set to point to it.

This changes helps support the DinD side of https://github.com/revolut-engineering/jooq-plugin/issues/3

In summary:

Previous behaviour:

New behaviour: