exec 实际上要表达的是在一个运行状态下的容器里执行命令。(进到容器看一看) docker exec -it 容器 /bin/bash 这个命令行,其实就是通过 -it 的模式执行了一下/bin/bash