Update boot2docker docs with tls workaround

This commit is contained in:
Ziad Sawalha 2014-12-20 04:14:45 -06:00
parent 9b166eea75
commit 881fe1fd79
1 changed files with 14 additions and 0 deletions

View File

@ -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()
```