diff --git a/README.rst b/README.rst index 9a8760286..5d7e7fbb6 100644 --- a/README.rst +++ b/README.rst @@ -51,6 +51,15 @@ The snippet above will spin up a MySql database in a container. The :code:`get_c More extensive documentation can be found at `Read The Docs `_. +Usage within Docker (i.e. in a CI) +---------------------------------- + +When trying to launch a testcontainer from within a Docker container two things have to be provided: + +1. The container has to provide a docker client installation. Either use an image that has docker pre-installed (e.g. the [official docker images](https://hub.docker.com/_/docker)) or install the client from within the `Dockerfile` specification. +2. The container has to have access to the docker daemon which can be achieved by mounting `/var/run/docker.sock` or setting the `DOCKER_HOST` environment variable as part of your `docker run` command. + + Setting up a development environment ------------------------------------