doc: update docs/docker.md (#565)

* doc: update ansible.md

* doc: update ansible.md 代码格式

* 增加十分钟同步的域名、增加自动部署脚本

* 优化部署文档:定时任务同步pages的内容

* 优化 git-down-pages.sh 脚本 到配置

* update  README.md

* 更新代码

* update: doc ansible.md

* update CONTRIBUTING.md

* update CONTRIBUTING.md fix

* 优化ansible排版格式

* fix: 定时脚本的逻辑 bug

* update: ansible.md

* update: 增加 docker 的清除命令

---------

Co-authored-by: 魏栋梁 <dongliang.wei@fujfu.com> dabb4b2cd7
This commit is contained in:
jaywcjlove
2024-03-12 13:02:23 +00:00
parent 4a9cb45ed7
commit 0b1a4588c6
5 changed files with 33 additions and 12 deletions

View File

@ -435,7 +435,27 @@
<table><thead><tr><th>实例</th><th>说明</th></tr></thead><tbody><tr><td><code>docker stop -f $(docker ps -a -q)</code></td><td>停止所有容器</td></tr><tr><td><code>docker rm -f $(docker ps -a -q)</code></td><td>删除所有容器</td></tr><tr><td><code>docker rmi -f $(docker images -q)</code></td><td>删除所有镜像</td></tr></tbody></table>
<table><thead><tr><th>实例</th><th>说明</th></tr></thead><tbody><tr><td><code>docker stop -f $(docker ps -a -q)</code></td><td>停止所有容器</td></tr><tr><td><code>docker rm -f $(docker ps -a -q)</code></td><td>删除所有容器</td></tr><tr><td><code>docker rmi -f $(docker images -q)</code></td><td>删除所有镜像</td></tr><tr><td><code>docker volume prune</code></td><td>删除所有未使用的Docker Volume</td></tr><tr><td><code>docker network prune</code></td><td>删除所有未使用的Docker网络</td></tr><tr><td><code>docker system prune</code></td><td>清理所有空闲或与任何Docker容器无关的资源</td></tr><tr><td><code>docker image prune</code></td><td>删除悬空的Docker镜像</td></tr><tr><td><code>docker container prune</code></td><td>删除所有未使用的Docker 容器</td></tr></tbody></table>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="卷-volume"><a aria-hidden="true" tabindex="-1" href="#卷-volume"><span class="icon icon-link"></span></a>卷 volume</h3><div class="wrap-body">
<p>检查卷</p>
<pre class="language-shell"><code class="language-shell code-highlight"><span class="code-line">$ <span class="token function">docker</span> volume <span class="token function">ls</span>