mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Stop checking the deprecated DOCKER_CLIENT_TIMEOUT variable
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
79ddf06267
commit
576a2ee7ae
@ -45,10 +45,6 @@ def docker_client(environment, version=None, tls_config=None, host=None,
|
|||||||
Returns a docker-py client configured using environment variables
|
Returns a docker-py client configured using environment variables
|
||||||
according to the same logic as the official Docker client.
|
according to the same logic as the official Docker client.
|
||||||
"""
|
"""
|
||||||
if 'DOCKER_CLIENT_TIMEOUT' in environment:
|
|
||||||
log.warn("The DOCKER_CLIENT_TIMEOUT environment variable is deprecated. "
|
|
||||||
"Please use COMPOSE_HTTP_TIMEOUT instead.")
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
kwargs = kwargs_from_env(environment=environment, ssl_version=tls_version)
|
kwargs = kwargs_from_env(environment=environment, ssl_version=tls_version)
|
||||||
except TLSParameterError:
|
except TLSParameterError:
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
DEFAULT_TIMEOUT = 10
|
DEFAULT_TIMEOUT = 10
|
||||||
HTTP_TIMEOUT = int(os.environ.get('DOCKER_CLIENT_TIMEOUT', 60))
|
HTTP_TIMEOUT = 60
|
||||||
IMAGE_EVENTS = ['delete', 'import', 'pull', 'push', 'tag', 'untag']
|
IMAGE_EVENTS = ['delete', 'import', 'pull', 'push', 'tag', 'untag']
|
||||||
IS_WINDOWS_PLATFORM = (sys.platform == "win32")
|
IS_WINDOWS_PLATFORM = (sys.platform == "win32")
|
||||||
LABEL_CONTAINER_NUMBER = 'com.docker.compose.container-number'
|
LABEL_CONTAINER_NUMBER = 'com.docker.compose.container-number'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user