uTools-Manuals/docs/docker/docker login.html
2019-05-07 10:37:34 +08:00

18 lines
895 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1>Docker login/logout 命令</h1>
<p><strong>docker login :</strong> 登陆到一个Docker镜像仓库如果未指定镜像仓库地址默认为官方仓库 Docker Hub</p>
<p><strong>docker logout :</strong> 登出一个Docker镜像仓库如果未指定镜像仓库地址默认为官方仓库 Docker Hub</p>
<h3>语法</h3>
<pre><code class="language-Docker">docker login [OPTIONS] [SERVER]</code></pre>
<pre><code class="language-Docker">docker logout [OPTIONS] [SERVER]</code></pre>
<p>OPTIONS说明</p>
<ul>
<li><p><strong>-u :</strong>登陆的用户名</p></li>
<li><p><strong>-p :</strong>登陆的密码</p></li>
</ul>
<h3>实例</h3>
<p>登陆到Docker Hub</p>
<pre><code class="language-Docker">docker login -u 用户名 -p 密码</code></pre>
<p>登出Docker Hub</p>
<pre><code class="language-Docker">docker logout</code></pre>
<!-- 其他扩展 -->