docker start
command is used to start one or more stopped containers. OR, alternatively docker container start
.
$ docker start [OPTIONS] CONTAINER [CONTAINER...]
--attach
, -a
→ Attach STDOUT/STDERR and forward signals--checkpoint
→ Restore from this checkpoint--checkpoint-dir
→ Use a custom checkpoint storage directory--detach-keys
→ Override the key sequence for detaching a container--interactive
, i
→ Attach container's STDIN$ docker start my_container
Here, you can use either container ID or container name.
docker start
with STDOUT/STDIN in interactive mode, so that output will be printed:
$ docker start -i -a my_container