File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ INFO[0000] Creating VirtualBox VM...
1313INFO[0007] Starting VirtualBox VM...
1414INFO[0007] Waiting for VM to start...
1515INFO[0041] "dev" has been created and is now the active machine.
16- INFO[0041] To point your Docker client at it, run this in your shell: $(docker-machine env dev)
16+ INFO[0041] To point your Docker client at it, run this in your shell: eval " $(docker-machine env dev)"
1717
1818$ docker-machine ls
1919NAME ACTIVE DRIVER STATE URL SWARM
2020dev * virtualbox Running tcp://192.168.99.127:2376
2121
22- $ $( docker-machine env dev)
22+ $ eval " $( docker-machine env dev) "
2323
2424$ docker run busybox echo hello world
2525Unable to find image 'busybox:latest' locally
@@ -35,7 +35,7 @@ INFO[0001] Creating Digital Ocean droplet...
3535INFO[0002] Waiting for SSH...
3636INFO[0070] Configuring Machine...
3737INFO[0109] "staging" has been created and is now the active machine.
38- INFO[0109] To point your Docker client at it, run this in your shell: $(docker-machine env staging)
38+ INFO[0109] To point your Docker client at it, run this in your shell: eval " $(docker-machine env staging)"
3939
4040$ docker-machine ls
4141NAME ACTIVE DRIVER STATE URL SWARM
Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ func cmdCreate(c *cli.Context) {
332332 case "fish" :
333333 info = fmt .Sprintf ("%s env %s | source" , c .App .Name , name )
334334 default :
335- info = fmt .Sprintf ("$(%s env %s)" , c .App .Name , name )
335+ info = fmt .Sprintf (`eval "$(%s env %s)"` , c .App .Name , name )
336336 }
337337
338338 log .Infof ("%q has been created and is now the active machine." , name )
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ $ docker-machine create -d virtualbox local
273273Load the Machine configuration into your shell:
274274
275275```
276- $ $(docker-machine env local)
276+ $ eval " $(docker-machine env local)"
277277```
278278Then run generate the token using the Swarm Docker image:
279279
@@ -324,7 +324,7 @@ export DOCKER_HOST=tcp://192.168.99.100:3376
324324```
325325
326326You can load this into your environment using
327- ` $(docker-machine env --swarm swarm-master) ` .
327+ ` eval " $(docker-machine env --swarm swarm-master)" ` .
328328
329329Now you can use the Docker CLI to query:
330330
@@ -389,13 +389,13 @@ run in a subshell. Running `docker-machine env -u` will print
389389
390390```
391391$ env | grep DOCKER
392- $ $(docker-machine env dev)
392+ $ eval " $(docker-machine env dev)"
393393$ env | grep DOCKER
394394DOCKER_HOST=tcp://192.168.99.101:2376
395395DOCKER_CERT_PATH=/Users/nathanleclaire/.docker/machines/.client
396396DOCKER_TLS_VERIFY=1
397397$ # If you run a docker command, now it will run against that host.
398- $ $(docker-machine env -u)
398+ $ eval " $(docker-machine env -u)"
399399$ env | grep DOCKER
400400$ # The environment variables have been unset.
401401```
You can’t perform that action at this time.
0 commit comments