Skip to content

How to connect with Docker in Docker (dind) in a tekton pipeline #297

Open
@dosper7

Description

@dosper7

I'm trying to execute some integration tests using a docker-compose file that I'm passing it to the FluentDocker.

Locally (windows machine) it works ok because (I assume) I already have the docker running, so the FluentDocker knows how to connect to it.

In my case, I'm running a dind, so the tests are in one pod, and the docker is on another pod,
I'm getting this error:
Ductus.FluentDocker.Common.FluentDockerException : Failed to find docker client binary - please add it to your path

I was using TestContainers and that was working ok (both locally and in the tekton pipelines) but then I switched to docker-compose to use the same file that we use on our day-to-day work and avoid having different versions in TestContainers vs docker-compose.

How to tell FluetDocker to communicate with that docker engine and not a "local" one? I think it's the http api vs native (correct me if I'm saying anything stupid 😄 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions