LinuxCommandLibrary

docker-containers

List Docker containers

TLDR

List currently running Docker containers

$ docker container ls
copy

Start one or more stopped containers

$ docker container start [container1_name] [container2_name]
copy

Kill one or more running containers

$ docker container kill [container_name]
copy

Stop one or more running containers

$ docker container stop [container_name]
copy

Pause all processes within one or more containers

$ docker container pause [container_name]
copy

Display detailed information on one or more containers

$ docker container inspect [container_name]
copy

Export a container's filesystem as a tar archive

$ docker container export [container_name]
copy

Create a new image from a container's changes

$ docker container commit [container_name]
copy

SYNOPSIS

No standard 'docker-containers' command exists.
Use docker container <SUBCOMMAND> [OPTIONS] [ARG...] instead.

PARAMETERS

--help
    Show help for docker container subcommands

--version
    Print version information (alias for docker version)

DESCRIPTION

The 'docker-containers' command does not exist as a standard Linux utility or Docker CLI tool. Docker, a popular platform for containerization, manages containers via the 'docker container' subcommand group.

This group provides commands like docker container ls to list containers, docker container run to start new ones, and docker container stop to halt them. Containers are lightweight, executable application environments that package code and dependencies.

Docker was developed by Docker Inc. (formerly dotCloud) and revolutionized DevOps by enabling consistent deployment across environments. To list all containers (running and stopped), use docker container ls -a. For real-time stats, docker container stats. Always ensure Docker daemon is running via systemctl status docker.

If 'docker-containers' refers to a custom script, alias, or third-party tool, consult its documentation. Standard usage requires Docker installed (apt install docker.io on Debian-based systems). Security note: run containers with least privileges using --user or non-root images.

CAVEATS

Command not found in PATH on standard systems. Verify Docker installation with docker --version. Requires root or docker group membership. Non-root users: sudo usermod -aG docker $USER and relogin.

COMMON USAGE EXAMPLES

docker container ls: List running containers.
docker container ls -a: List all containers.
docker container prune: Remove stopped containers.

ALTERNATIVES

Podman for rootless containers: podman ps. LXC: lxc-ls (legacy).

HISTORY

Docker launched in 2013 by Solomon Hykes at dotCloud. Container subcommands stabilized in Docker 1.13 (2017) with 'docker container' CLI reorganization for better scalability. Now at Docker 27+; upstreamed to containerd runtime.

SEE ALSO

Copied to clipboard