You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/features/configuration.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,18 +70,21 @@ However, sometimes customization is required. Testcontainers-Python will respect
70
70
3. Read the **DOCKER_HOST** environment variable. E.g. `DOCKER_HOST=unix:///var/run/docker.sock`
71
71
See [Docker environment variables](https://docs.docker.com/engine/reference/commandline/cli/#environment-variables) for more information.
72
72
73
-
4. Read the default Docker socket path, without the unix schema. E.g. `/var/run/docker.sock`
73
+
4. Read the **current Docker context** (as set by `docker context use`) and use its host. E.g. with a context pointing at `ssh://user@remote-host`, no extra configuration is needed.
74
+
The built-in `default` context is skipped so local sockets / named pipes go through the standard fallback.
74
75
75
-
5. Read the **docker.host** property in the `~/.testcontainers.properties` file. E.g. `docker.host=tcp://my.docker.host:1234`
76
+
5. Read the default Docker socket path, without the unix schema. E.g. `/var/run/docker.sock`
76
77
77
-
6. Read the rootless Docker socket path, checking the following alternative locations:
78
+
6. Read the **docker.host** property in the `~/.testcontainers.properties` file. E.g. `docker.host=tcp://my.docker.host:1234`
79
+
80
+
7. Read the rootless Docker socket path, checking the following alternative locations:
78
81
79
82
1.`${XDG_RUNTIME_DIR}/.docker/run/docker.sock`
80
83
2.`${HOME}/.docker/run/docker.sock`
81
84
3.`${HOME}/.docker/desktop/docker.sock`
82
85
4.`/run/user/${UID}/docker.sock`, where `${UID}` is the user ID of the current user
83
86
84
-
7. The library will raise a `DockerHostError` if none of the above are set, meaning that the Docker host was not detected.
87
+
8. The library will raise a `DockerHostError` if none of the above are set, meaning that the Docker host was not detected.
0 commit comments