Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Update documentation regarding cleanning Docker containers/images
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Mar 23, 2017
1 parent 75a62c6 commit 72c0864
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ Docker 镜像和容器日常清理

.. code-block:: bash
docker ps -a | grep Exited | awk '{print $1}' | xargs docker rm
docker rm $(docker ps -a -q)
批量删除无用的镜像:

.. code-block:: bash
docker images | grep none | awk '{print $3}' | xargs docker rmi
docker rmi $(docker images -q -f dangling=true)

0 comments on commit 72c0864

Please sign in to comment.