Merge pull request #633 from edmorley/update-b2d-shellinit-example

Docs: Update boot2docker shellinit example to use 'eval'
This commit is contained in:
Joffrey F 2015-06-18 11:54:16 -07:00
commit b78397d233
1 changed files with 1 additions and 4 deletions

View File

@ -4,13 +4,10 @@ For usage with boot2docker, there is a helper function in the utils package name
First run boot2docker in your shell:
```bash
$ $(boot2docker shellinit)
$ eval "$(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
```
You can then instantiate `docker.Client` like this: