Browse code

- Added delete all the containers example

Roberto Gandolfo Hashioka authored on 2013/11/09 09:47:42
Showing 1 changed files
... ...
@@ -622,6 +622,15 @@ This will remove the container referenced under the link ``/redis``.
622 622
 This will remove the underlying link between ``/webapp`` and the ``/redis`` containers removing all
623 623
 network communication.
624 624
 
625
+.. code-block:: bash
626
+
627
+    $ docker rm `docker ps -a -q`
628
+
629
+
630
+This command will delete all the stopped containers. The command ``docker ps -a -q`` will return all
631
+the existing container's id and the ``rm`` command takes those id's and delete them. The running containers
632
+will not be deleted, even though they will appear on that id's list.
633
+
625 634
 .. _cli_rmi:
626 635
 
627 636
 ``rmi``