📌  相关文章
📜  保持容器运行而不直接退出 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:13.434000             🧑  作者: Mango

代码示例1
# add this at the end of your entrypoint file
# to keep the container running and not exit directly
set -x
while $1
do
    echo "Press [CTRL+C] to stop.."
    sleep 5
    echo "My second and third argument is $2 & $3"
done