← 返回命令列表

Linux command

docker-start 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Start a stopped container

docker start [container]

Start multiple containers

docker start [container1] [container2]

Start with attached output

docker start -a [container]

Start interactively

docker start -ai [container]

说明

docker start starts one or more stopped containers. Containers retain their configuration from when they were created or last run.

参数

-a, --attach
Attach STDOUT/STDERR and forward signals.
-i, --interactive
Attach container's STDIN.
--detach-keys _string_
Override the key sequence for detaching a container.
--checkpoint _string_
Restore from this checkpoint.
--checkpoint-dir _string_
Use a custom checkpoint storage directory.

FAQ

What is the docker-start command used for?

docker start starts one or more stopped containers. Containers retain their configuration from when they were created or last run.

How do I run a basic docker-start example?

Run `docker start [container]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --attach do in docker-start?

Attach STDOUT/STDERR and forward signals.