Update docker.md (#4822)

As per Peter Zhu, `docker container prune` is right to use when trying to remove stopped containers: https://docs.docker.com/engine/reference/commandline/container_prune/

Signed-off-by: Heather Halter <HDHALTER@AMAZON.COM>
This commit is contained in:
Heather Halter 2023-08-17 15:50:13 -07:00 committed by GitHub
parent 3ade0a93b8
commit 8f91f1a49b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ Before continuing, you should verify that Docker is working correctly by deployi
``` ```
{% include copy.html %} {% include copy.html %}
Remember that `docker container ls` does not list stopped containers. If you would like to review stopped containers, use `docker container ls -a`. You can remove unneeded containers manually with `docker container rm <containerId_1> <containerId_2> <containerId_3> [...]` (pass all container IDs you wish to stop, separated by spaces), or if you want to remove all stopped containers, you can use the shorter command `docker prune`. Remember that `docker container ls` does not list stopped containers. If you would like to review stopped containers, use `docker container ls -a`. You can remove unneeded containers manually with `docker container rm <containerId_1> <containerId_2> <containerId_3> [...]` (pass all container IDs you wish to stop, separated by spaces), or if you want to remove all stopped containers, you can use the shorter command `docker container prune`.
{: .tip} {: .tip}
## Deploy an OpenSearch cluster using Docker Compose ## Deploy an OpenSearch cluster using Docker Compose