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

Commit

Permalink
Add documentation about cleanup Docker containers and images
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Sep 20, 2016
1 parent 3e6ea7f commit 55df367
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,18 @@ Docker 模式
Docker 模式一般使用独立环境变量进行配置。

可供配置的项请参考 :ref:`配置选项 <settings>` 文档。

Docker 镜像和容器日常清理
-------------------------------

批量删除停止的无用的容器:

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

.. code-block:: bash
docker images | grep none | awk '{print $3}' | xargs docker rmi

0 comments on commit 55df367

Please sign in to comment.