
[英]The ‘exit' statement in a shell script running in a Docker container exits the script but also the container; Can I prevent exiting the container?
[英]Prevent Docker container to exit
我開始 dockerize 一個 Linux 應用程序,為此我寫了一個 Dockerfile :
“入口點.sh”:
之后容器停止,因為應用程序運行后台服務。
由於我對 dockerize 應用程序比較陌生,如何防止容器停止?
謝謝您的幫助!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.