Skip to content

Commit 3aef260

Browse files
authored
Merge pull request #97 from duanhongyi/patch-1
fix(docker): docker timeout must be an int, float or None
2 parents 820403f + 87f6ccf commit 3aef260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rootfs/registry/dockerclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DockerClient(object):
2626

2727
def __init__(self):
2828
timeout = os.environ.get('DOCKER_CLIENT_TIMEOUT', docker.constants.DEFAULT_TIMEOUT_SECONDS)
29-
self.client = docker.Client(version='auto', timeout=timeout)
29+
self.client = docker.Client(version='auto', timeout=int(timeout))
3030
self.registry = settings.REGISTRY_HOST + ':' + str(settings.REGISTRY_PORT)
3131

3232
def login(self, repository, creds=None):

0 commit comments

Comments
 (0)