Lines Matching +full:is +full:- +full:docker
2 # Use of this source code is governed by a BSD-style license that can be
8 import docker
10 logging.info("Docker API is not installed in this environment")
14 # Default docker socker.
15 DOCKER_SOCKET = env_vars.get('DOCKER_SOCKET', '/var/run/docker.sock')
17 # This the default IP where the docker daemon is running on the Satlab.
19 # This the default IP where the docker daemon is listening on the Satlab.
21 # Optional docker tcp ip address/port dockerd listens to.
30 Get the client of the host Docker server either via default Docker socket or TCP connection.
32 # Use default TCP connection IP to create docker client if docker socket(
33 # /var/run/docker.sock) doesn't exists on the machine or when TCP connection IP
34 # is not default IP, otherwise use docker socket file to create docker client.
37 client = docker.from_env(timeout=timeout)
41 client = docker.DockerClient(base_url=tcp_connection, timeout=timeout)
49 if client is None:
57 Return the list of networks of the container. Return [] if container is not found.
59 if client is None:
71 Return the IP Address of networks of the container. Return None if container is not found.
73 if client is None:
84 except docker.errors.APIError:
86 except docker.errors.NotFound: