我是Linux的新手,所以我不太了解守护程序,前台进程和后台进程之间的区别。
据我了解:
然后,如果我在带有“ daemon off”标志的docker容器内运行例如nginx,这意味着nginx将成为在容器控制台中运行的前台进程?
答案 0 :(得分:0)
阅读this。
To start a container in detached mode, you use -d=true or just -d option.
In foreground mode (the default when -d is not specified), docker run can start the process in the container and attach the console to the process’s standard input, output, and standard error.