命令
docker start
描述
启动一个或者多个已经停止的容器
帮助
# docker start --help
Usage: docker start [OPTIONS] CONTAINER [CONTAINER...]
Start one or more stopped containers
Options:
-a, --attach Attach STDOUT/STDERR and forward signals
--checkpoint string Restore from this checkpoint
--checkpoint-dir string Use a custom checkpoint storage directory
--detach-keys string Override the key sequence for detaching a container
-i, --interactive Attach container's STDIN
选项
| 选项 | 默认 | 描述 | | – | – | – | | –attach , -a | | 将标准输出/标准错误连接到容器,传递所有信号 | | –checkpoint string | | 从某一个切入点还原 | | –checkpoint-dir string | | 使用一个自定义的切入点目录 | | –detach-keys string | | 覆盖默认的后台运行命令 | | -i, –interactive | | 激活标准输入,连接容器终端 |
示例
- 启动一个停止的容器
$ docker start my_container