doc: update docker.md (#479) 3f822852bf

This commit is contained in:
jaywcjlove
2023-12-08 05:12:00 +00:00
parent 0d9d52480a
commit 27266e9a6a
5 changed files with 9 additions and 6 deletions

View File

@ -300,6 +300,9 @@
</div></div></div></div></div><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="docker-网络"><a aria-hidden="true" tabindex="-1" href="#docker-网络"><span class="icon icon-link"></span></a>Docker 网络</h2><div class="wrap-body">
<!--rehype:body-class=cols-2-->
</div></div><div class="h2wrap-body cols-2"><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="操作"><a aria-hidden="true" tabindex="-1" href="#操作"><span class="icon icon-link"></span></a>操作</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> inspect MyContainer <span class="token operator">|</span> <span class="token function">grep</span> Network
</span></code></pre>
<p>删除网络</p>
<pre class="language-shell"><code class="language-shell code-highlight"><span class="code-line"><span class="token function">docker</span> network <span class="token function">rm</span> MyOverlayNetwork
</span></code></pre>