https://codingnote.cc/p/521935/
利用 trap 在 docker 容器优雅关闭前执行环境清理