mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
- Added delete all the containers example
This commit is contained in:
parent
f26da9638f
commit
403f9fc357
1 changed files with 9 additions and 0 deletions
|
@ -622,6 +622,15 @@ This will remove the container referenced under the link ``/redis``.
|
|||
This will remove the underlying link between ``/webapp`` and the ``/redis`` containers removing all
|
||||
network communication.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ docker rm `docker ps -a -q`
|
||||
|
||||
|
||||
This command will delete all the stopped containers. The command ``docker ps -a -q`` will return all
|
||||
the existing container's id and the ``rm`` command takes those id's and delete them. The running containers
|
||||
will not be deleted, even though they will appear on that id's list.
|
||||
|
||||
.. _cli_rmi:
|
||||
|
||||
``rmi``
|
||||
|
|
Loading…
Reference in a new issue