uTools-Manuals/docs/docker/docker create.html
2019-04-21 11:50:48 +08:00

13 lines
573 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 create 命令</h1>
<p><strong>docker create </strong>创建一个新的容器但不启动它</p>
<p>用法同 <a href="docker-run-command.html">docker run</a></p>
<h3>语法</h3>
<pre>docker create [OPTIONS] IMAGE [COMMAND] [ARG...]</pre>
<p>语法同 <a href="docker-run-command.html">docker run</a></p>
<h3>实例</h3>
<p>使用docker镜像nginx:latest创建一个容器,并将容器命名为myrunoob</p>
<pre>runoob@runoob:~$ docker create --name myrunoob nginx:latest
09b93464c2f75b7b69f83d56a9cfc23ceb50a48a9db7652ee4c27e3e2cb1961f