我对linux非常陌生,所以我不太明白守护进程、前台进程和后台进程之间的区别。
据我所知:
那么,如果我在带有“守护进程关闭”标志的坞容器中运行nginx,这意味着nginx将是在容器的控制台中运行的前台进程?
发布于 2018-07-23 08:58:10
究竟是什么问题呢?
- `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.`
https://stackoverflow.com/questions/51474890
复制相似问题