浏览代码

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

Docs: Update boot2docker shellinit example to use 'eval'
Aanand Prasad 10 年之前
父节点
当前提交
17e03b29f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/cli.md

+ 1 - 1
docs/cli.md

@@ -157,7 +157,7 @@ By default, if there are existing containers for a service, `docker-compose up`
 Several environment variables are available for you to configure Compose's behaviour.
 
 Variables starting with `DOCKER_` are the same as those used to configure the
-Docker command-line client. If you're using boot2docker, `$(boot2docker shellinit)`
+Docker command-line client. If you're using boot2docker, `eval "$(boot2docker shellinit)"`
 will set them to their correct values.
 
 ### COMPOSE\_PROJECT\_NAME