Docker 教程 - Docker run 命令
输入参数 | 功能 |
---|---|
-d, --detach | Detached mode: run the container in the background and print the new container ID. The default is false. 后台模式,在后台运行容器,并打印其ID。(通常用于守护式容器) |
-i, --interactive | Keep STDIN open even if not attached. The default is false. 保持标准输入流对容器开放,即使容器没有终端连接。 |
-t, --tty | Allocate a pseudo-TTY. The default is false. 为容器分配一个虚拟终端(这将允许你发送信号给容器) |