“docker ps” Commands With Different Options
You can us the docker ps command with different options which will give us the output depending on the output required.
Command |
Options |
---|---|
docker ps “- q” or “–quite” |
Show only the container IDs. |
docker ps “– format” |
Specify a Go template to format the output. |
docker ps “– filter” |
Filter output based on conditions. |
What is Docker PS Command ?
he “docker ps” command is used to list all the running containers in the docker host. With the help of some filters, you can get the output of all the containers in the docker with are running and that are stopped. it shows the list of active containers that includes details about each one, including its name, ID, creation image, program being run inside it, creation time, and status.