Skip to content

Commit 9a5b7b2

Browse files
author
Ed Morley
committed
Docs: Update boot2docker shellinit example to use 'eval'
The boot2docker documentation has since changed the recommended way to use shellinit - see boot2docker/boot2docker#786. The command also no longer prints the export lines to the console, so have updated the example output.
1 parent be73aaf commit 9a5b7b2

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)