Skip to content

Commit dfd35a0

Browse files
committed
Merge branch 'boot2docker-docs' of https://github.com/ziadsawalha/docker-py into ziadsawalha-boot2docker-docs
2 parents 9e295d6 + 881fe1f commit dfd35a0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/boot2docker.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,17 @@ from docker.utils import kwargs_from_env
2121
client = Client(**kwargs_from_env())
2222
print client.version()
2323
```
24+
25+
To avoid the common error `SSLError: hostname '192.168.59.103' doesn't match 'boot2docker'`, you
26+
can disable hostname validation.
27+
28+
```python
29+
from docker.client import Client
30+
from docker.utils import kwargs_from_env
31+
32+
kwargs = kwargs_from_env()
33+
kwargs['tls'].assert_hostname = False
34+
35+
client = Client(**kwargs)
36+
print client.version()
37+
```

0 commit comments

Comments
 (0)