Skip to content

Commit 881fe1f

Browse files
committed
Update boot2docker docs with tls workaround
1 parent 9b166ee commit 881fe1f

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)