改正输入错漏。

CMD ["nginx" "-g" "daemon off;"] -> CMD ["nginx", "-g", "daemon off;"]
pull/148/head
Kim Wu 2017-01-13 14:21:35 +08:00
parent b3d6b681cb
commit 9f9151580d
1 changed files with 1 additions and 1 deletions

View File

@ -45,5 +45,5 @@ CMD service nginx start
正确的做法是直接执行 `nginx` 可执行文件,并且要求以前台形式运行。比如:
```Dockerfile
CMD ["nginx" "-g" "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]
```