vantage6.common.docker.addons.get_container#
- get_container(docker_client, **filters)#
Return container if it exists after searching using kwargs
- Parameters:
docker_client (DockerClient) – Python docker client
**filters – These are arguments that will be passed to the client.container.list() function. They should yield 0 or 1 containers as result (e.g. name=’something’)
- Returns:
Container if it exists, else None
- Return type:
Container or None