From 9f9151580d88e81fd1d913bf04b21389bada6fed Mon Sep 17 00:00:00 2001 From: Kim Wu Date: Fri, 13 Jan 2017 14:21:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E6=AD=A3=E8=BE=93=E5=85=A5=E9=94=99?= =?UTF-8?q?=E6=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CMD ["nginx" "-g" "daemon off;"] -> CMD ["nginx", "-g", "daemon off;"] --- image/dockerfile/cmd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/dockerfile/cmd.md b/image/dockerfile/cmd.md index 56c421a..120abc3 100644 --- a/image/dockerfile/cmd.md +++ b/image/dockerfile/cmd.md @@ -45,5 +45,5 @@ CMD service nginx start 正确的做法是直接执行 `nginx` 可执行文件,并且要求以前台形式运行。比如: ```Dockerfile -CMD ["nginx" "-g" "daemon off;"] +CMD ["nginx", "-g", "daemon off;"] ```