From 950dadf54d3f491d53ca218dc75ed2a40af8ac2d Mon Sep 17 00:00:00 2001 From: Chao Mai Date: Tue, 18 Aug 2015 10:07:45 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20issue=20#68:=20=E5=9C=A85.2=20=E5=AE=88?= =?UTF-8?q?=E6=8A=A4=E7=8A=B6=E6=80=81=E8=BF=90=E8=A1=8C=E4=B8=AD=EF=BC=8C?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- container/daemon.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/daemon.md b/container/daemon.md index afc5792..9a297ca 100644 --- a/container/daemon.md +++ b/container/daemon.md @@ -16,7 +16,7 @@ hello world 如果使用了 `-d` 参数运行容器。 ``` -$ sudo docker run ubuntu:14.04 /bin/sh -c "while true; do echo hello world; sleep 1; done" +$ sudo docker run -d ubuntu:14.04 /bin/sh -c "while true; do echo hello world; sleep 1; done" 77b2dc01fe0f3f1265df143181e7b9af5e05279a884f4776ee75350ea9d8017a ``` 此时容器会在后台运行并不会把输出的结果(STDOUT)打印到宿主机上面(输出结果可以用docker logs 查看)。