jina.orchestrate.pods.container_helper module
jina.orchestrate.pods.container_helper.get_docker_network(client)[source]
Do a best-effort guess if the caller is already in a docker network
Check if hostname exists in list of docker containers. If a container is found, check its network id
Parameters
client – docker client object
Return type
Optional
[str
]Returns
network id if exists
jina.orchestrate.pods.container_helper.get_gpu_device_requests(gpu_args)[source]
Get docker device requests from gpu args
Parameters
gpu_args – gpu args fr
Returns
docker device requests