clients — Docker Clients¶
- clients.open_docker_client() AbstractContextManager[DockerClient][source]¶
Starts a Docker client. Includes a fallback to the default TCP port (and so supports virtual machines like WSL1).
- Returns:
context manager that yields a valid docker client. And closes it when exiting the context.
- clients.docker_client(...)[source]¶
Legacy alias for
open_docker_client().