I'm creating some tests for my CI/CD service with testcontainers.
One of the tests contains docker image building inside the testcontainer. It fails as it cannot access docker daemon.
The question is how to share local docker daemon to testcontainer or how to run docker doemon inside of testcontainer in the easiest way?
So, finally I have solved it by running
docker-dind
image as an additional containerAnd added docker host to my CI container:
Now it works well