mirror of https://github.com/docker/docker-py.git
Update boot2docker docs with tls workaround
This commit is contained in:
parent
9b166eea75
commit
881fe1fd79
|
@ -21,3 +21,17 @@ from docker.utils import kwargs_from_env
|
||||||
client = Client(**kwargs_from_env())
|
client = Client(**kwargs_from_env())
|
||||||
print client.version()
|
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()
|
||||||
|
```
|
Loading…
Reference in New Issue