'docker exec' 和 'docker run' 之间有什么区别?
docker exec 在已经运行的容器中运行程序。例如,你可以使用它在当前运行数据库服务器的容器中创建备份。
docker run 启动新容器并在其中运行命令。例如,你可以使用它在容器中运行特定脚本。
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow