mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-20 06:01:22 +08:00
feat: add CONTRIBUTING.md
document. efa51c0a06
This commit is contained in:
@ -33,7 +33,7 @@
|
||||
<li><code>nginx</code> - 要使用的镜像</li>
|
||||
</ul>
|
||||
</div></div></div><div class="wrap"><div class="wrap-header h3wrap"><h3>一般命令</h3><div class="wrap-body">
|
||||
<table class="table-thead-hide">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Example</th>
|
||||
@ -90,11 +90,11 @@
|
||||
<td>杀死一个容器</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><!--rehype:class=table-thead-hide-->
|
||||
</table>
|
||||
<p>参数 <code><container></code> 可以是容器 id 或名称</p>
|
||||
</div></div></div></div></div><div class="wrap"><div class="wrap-header h2wrap"><h2>Docker 容器</h2><div class="wrap-body"><!--rehype:body-class=cols-2-->
|
||||
</div></div><div class="h2wrap-body cols-2"><div class="wrap"><div class="wrap-header h3wrap"><h3>启动和停止</h3><div class="wrap-body">
|
||||
<table class="table-thead-hide">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Description</th>
|
||||
@ -135,9 +135,9 @@
|
||||
<td>连接到现有容器</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><!--rehype:class=table-thead-hide-->
|
||||
</table>
|
||||
</div></div></div><div class="wrap"><div class="wrap-header h3wrap"><h3>说明</h3><div class="wrap-body">
|
||||
<table class="table-thead-hide">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Example</th>
|
||||
@ -182,7 +182,7 @@
|
||||
<td>列出对容器所做的更改</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><!--rehype:class=table-thead-hide-->
|
||||
</table>
|
||||
</div></div></div><div class="wrap"><div class="wrap-header h3wrap"><h3>创建容器</h3><div class="wrap-body">
|
||||
<pre class="language-shell"><code class="language-shell code-highlight"><span class="code-line line-number" line="1"><span class="token function">docker</span> create <span class="token punctuation">[</span>options<span class="token punctuation">]</span> IMAGE
|
||||
</span><span class="code-line line-number" line="2"> -a, <span class="token parameter variable">--attach</span> <span class="token comment"># 附加标准输出/错误</span>
|
||||
@ -211,7 +211,7 @@
|
||||
</span></code></pre>
|
||||
</div></div></div></div></div><div class="wrap"><div class="wrap-header h2wrap"><h2>Docker Images</h2><div class="wrap-body"><!--rehype:body-class=cols-2-->
|
||||
</div></div><div class="h2wrap-body cols-2"><div class="wrap"><div class="wrap-header h3wrap"><h3>操控</h3><div class="wrap-body">
|
||||
<table class="table-thead-hide">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><code>Example</code></th>
|
||||
@ -256,7 +256,7 @@
|
||||
<td>推送镜像</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><!--rehype:class=table-thead-hide-->
|
||||
</table>
|
||||
</div></div></div><div class="wrap"><div class="wrap-header h3wrap"><h3>构建镜像</h3><div class="wrap-body">
|
||||
<pre class="language-shell"><code class="language-shell code-highlight"><span class="code-line line-number" line="1">$ <span class="token function">docker</span> build <span class="token builtin class-name">.</span>
|
||||
</span><span class="code-line line-number" line="2">$ <span class="token function">docker</span> build github.com/creack/docker-firefox
|
||||
@ -303,7 +303,7 @@
|
||||
</span></code></pre>
|
||||
</div></div></div></div></div><div class="wrap"><div class="wrap-header h2wrap"><h2>各种各样的</h2><div class="wrap-body"><!--rehype:body-class=cols-2-->
|
||||
</div></div><div class="h2wrap-body cols-2"><div class="wrap"><div class="wrap-header h3wrap"><h3>Docker Hub</h3><div class="wrap-body">
|
||||
<table class="table-thead-hide">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Docker 语法</th>
|
||||
@ -328,7 +328,7 @@
|
||||
<td>将镜像上传到 docker hub。</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><!--rehype:class=table-thead-hide-->
|
||||
</table>
|
||||
</div></div></div><div class="wrap row-span-3"><div class="wrap-header h3wrap"><h3>注册表命令</h3><div class="wrap-body"><!--rehype:wrap-class=row-span-3-->
|
||||
<p>登录到注册表</p>
|
||||
<pre class="language-shell"><code class="language-shell code-highlight"><span class="code-line line-number" line="1">$ <span class="token function">docker</span> login
|
||||
@ -351,7 +351,7 @@
|
||||
</span><span class="code-line line-number" line="2">$ <span class="token function">docker</span> push eon01/nginx localhost:5000/myadmin/nginx
|
||||
</span></code></pre>
|
||||
</div></div></div><div class="wrap"><div class="wrap-header h3wrap"><h3>批量清除</h3><div class="wrap-body">
|
||||
<table class="table-thead-hide">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>实例</th>
|
||||
@ -372,7 +372,7 @@
|
||||
<td>删除所有图像</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><!--rehype:class=table-thead-hide-->
|
||||
</table>
|
||||
</div></div></div><div class="wrap"><div class="wrap-header h3wrap"><h3>卷 volume</h3><div class="wrap-body">
|
||||
<p>检查卷</p>
|
||||
<pre class="language-shell"><code class="language-shell code-highlight"><span class="code-line line-number" line="1">$ <span class="token function">docker</span> volume <span class="token function">ls</span>
|
||||
|
Reference in New Issue
Block a user