Skip to content

Commit b78397d

Browse files
committed
Merge pull request #633 from edmorley/update-b2d-shellinit-example
Docs: Update boot2docker shellinit example to use 'eval'
2 parents 6fd3918 + 9a5b7b2 commit b78397d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/boot2docker.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@ For usage with boot2docker, there is a helper function in the utils package name
44

55
First run boot2docker in your shell:
66
```bash
7-
$ $(boot2docker shellinit)
7+
$ eval "$(boot2docker shellinit)"
88
Writing /Users/you/.boot2docker/certs/boot2docker-vm/ca.pem
99
Writing /Users/you/.boot2docker/certs/boot2docker-vm/cert.pem
1010
Writing /Users/you/.boot2docker/certs/boot2docker-vm/key.pem
11-
export DOCKER_HOST=tcp://192.168.59.103:2376
12-
export DOCKER_CERT_PATH=/Users/you/.boot2docker/certs/boot2docker-vm
13-
export DOCKER_TLS_VERIFY=1
1411
```
1512

1613
You can then instantiate `docker.Client` like this:

0 commit comments

Comments
 (0)