mirror of
https://github.com/yeasy/docker_practice.git
synced 2025-08-02 22:11:38 +00:00
Fix format and update outdate content
This commit is contained in:
@@ -28,7 +28,7 @@ CMD [ "sh", "-c", "echo $HOME" ]
|
||||
|
||||
提到 `CMD` 就不得不提容器中应用在前台执行和后台执行的问题。这是初学者常出现的一个混淆。
|
||||
|
||||
Docker 不是虚拟机,容器中的应用都应该以前台执行,而不是像虚拟机、物理机里面那样,用 upstart/systemd 去启动后台服务,容器内没有后台服务的概念。
|
||||
Docker 不是虚拟机,容器中的应用都应该以前台执行,而不是像虚拟机、物理机里面那样,用 `systemd` 去启动后台服务,容器内没有后台服务的概念。
|
||||
|
||||
一些初学者将 `CMD` 写为:
|
||||
|
||||
|
Reference in New Issue
Block a user