diff options
author | Joffrey F <joffrey@docker.com> | 2014-11-14 01:35:49 +0100 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2014-11-14 01:35:49 +0100 |
commit | 8df3a3f5aee0c11d6c764def2e5b8c2ee943a916 (patch) | |
tree | f8f707ed91fbff4b88b74249d42f186e825bab38 /docs/api.md | |
parent | 773cd0cd57753f5f0dda42ff2b8949124d8bbd45 (diff) | |
download | docker-py-8df3a3f5aee0c11d6c764def2e5b8c2ee943a916.tar.gz |
Moved boot2docker instructions to their own file
Diffstat (limited to 'docs/api.md')
-rw-r--r-- | docs/api.md | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/docs/api.md b/docs/api.md index a9edb33..3dd9afb 100644 --- a/docs/api.md +++ b/docs/api.md @@ -8,29 +8,6 @@ from docker import Client c = Client(base_url='unix://var/run/docker.sock') ``` -**Boot2docker**: - -For usage with boot2docker, there is a helper function in docker.utils named `kwargs_from_env`, it will pass any environment variables from Boot2docker to the Client. - -First run boot2docker in your shell: -```bash -$ $(boot2docker shellinit) -Writing /Users/you/.boot2docker/certs/boot2docker-vm/ca.pem -Writing /Users/you/.boot2docker/certs/boot2docker-vm/cert.pem -Writing /Users/you/.boot2docker/certs/boot2docker-vm/key.pem -export DOCKER_HOST=tcp://192.168.59.103:2376 -export DOCKER_CERT_PATH=/Users/you/.boot2docker/certs/boot2docker-vm -export DOCKER_TLS_VERIFY=1 -``` - -and then, in your python script: -```python -from docker.client import Client -from docker.utils import kwargs_from_env -client = Client(**kwargs_from_env()) -print client.version() -``` - **Params**: * base_url (str): Refers to the protocol+hostname+port where the Docker server |