summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZiad Sawalha <gerrit@highbridgellc.com>2014-12-20 04:14:45 -0600
committerZiad Sawalha <gerrit@highbridgellc.com>2014-12-20 04:14:45 -0600
commit881fe1fd795eab6e0723f842d38bdfa1f28e5787 (patch)
treeaac3f0026973daef8b3fc9d19096b60bc67ed7ac
parent9b166eea7555bd4d09d9c7959a1c73b9ac19070c (diff)
downloaddocker-py-881fe1fd795eab6e0723f842d38bdfa1f28e5787.tar.gz
Update boot2docker docs with tls workaround
-rw-r--r--docs/boot2docker.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/boot2docker.md b/docs/boot2docker.md
index 0888611..dd6ca41 100644
--- a/docs/boot2docker.md
+++ b/docs/boot2docker.md
@@ -21,3 +21,17 @@ from docker.utils import kwargs_from_env
client = Client(**kwargs_from_env())
print client.version()
```
+
+To avoid the common error `SSLError: hostname '192.168.59.103' doesn't match 'boot2docker'`, you
+can disable hostname validation.
+
+```python
+from docker.client import Client
+from docker.utils import kwargs_from_env
+
+kwargs = kwargs_from_env()
+kwargs['tls'].assert_hostname = False
+
+client = Client(**kwargs)
+print client.version()
+``` \ No newline at end of file