LinuxCommandLibrary

docker-container-start

start one or more stopped containers

TLDR

Start a stopped container

$ docker container start [container]
copy
Start multiple containers
$ docker container start [container1] [container2]
copy
Start with attached output
$ docker container start -a [container]
copy
Start interactively
$ docker container start -ai [container]
copy

SYNOPSIS

docker container start [options] container [container...]

DESCRIPTION

docker container start starts one or more stopped containers, resuming them from their previous state. Unlike docker container run, which creates a new container, this command operates on existing containers that have been stopped.
The container resumes with its original configuration, including environment variables, volumes, network settings, and the command that was initially specified. This makes it useful for restarting services or resuming work in development containers.

PARAMETERS

-a, --attach

Attach STDOUT/STDERR.
-i, --interactive
Attach STDIN.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community