LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.

INSTALL

sudo apt install docker-cli
copy
sudo dnf install docker-cli
copy
sudo pacman -S docker
copy
sudo apk add docker-cli
copy
sudo zypper install docker
copy
brew install docker
copy
nix profile install nixpkgs#docker
copy

SEE ALSO

Copied to clipboard
Kai