Skip to content

Commit c31ce82

Browse files
author
shin-
committed
Bumped to 0.1.4
1 parent f7b8065 commit c31ce82

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
ChangeLog
22
=========
33

4+
0.1.4
5+
-----
6+
7+
* Added support for API connection through UNIX socket (default for docker 0.5.2+)
8+
49
0.1.3
510
-----
611

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ An API client for docker written in Python
66
API
77
===
88

9-
`docker.Client(base_url='http://localhost:4243', version="1.3")`
9+
`docker.Client(base_url='unix://var/run/docker.sock', version="1.3")`
1010
Client class. `base_url` refers to the protocol+hostname+port where the docker
1111
server is hosted. Version is the version of the API the client will use.
1212

docker/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def connect(self):
3131
sock.connect(self.base_url.replace("unix:/",""))
3232
self.sock = sock
3333

34-
3534
def _extract_path(self, url):
3635
#remove the base_url entirely..
3736
return url.replace(self.base_url, "")
@@ -50,6 +49,7 @@ def __init__(self, base_url, socket_path):
5049
def _new_conn(self):
5150
return UnixHTTPConnection(self.base_url, self.socket_path)
5251

52+
5353
class UnixAdapter(HTTPAdapter):
5454
def __init__(self, base_url):
5555
self.base_url = base_url
@@ -73,7 +73,6 @@ def __init__(self, base_url="unix://var/run/docker.sock", version="1.4"):
7373
def _url(self, path):
7474
return '{0}/v{1}{2}'.format(self.base_url, self._version, path)
7575

76-
7776
def _raise_for_status(self, response):
7877
"""Raises stored :class:`HTTPError`, if one occurred."""
7978
http_error_msg = ''

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
test_requirements = []
99
setup(
1010
name="docker-py",
11-
version='0.1.3',
11+
version='0.1.4',
1212
description="Python client for Docker.",
1313
packages=['docker'],
1414
install_requires=['requests', 'six'] + test_requirements,

0 commit comments

Comments
 (0)