mirror of
https://github.com/yeasy/docker_practice.git
synced 2025-08-03 22:42:08 +00:00
Fix word in image chapter
This commit is contained in:
19
image/pull.md
Normal file
19
image/pull.md
Normal file
@@ -0,0 +1,19 @@
|
||||
##获取镜像
|
||||
可以使用docker pull命令来预先下载所需要的镜像。
|
||||
|
||||
下面的例子下载一个centos镜像。
|
||||
```
|
||||
$ sudo docker pull centos
|
||||
Pulling repository centos
|
||||
b7de3133ff98: Pulling dependent layers
|
||||
5cc9e91966f7: Pulling fs layer
|
||||
511136ea3c5a: Download complete
|
||||
ef52fb1fe610: Download complete
|
||||
```
|
||||
下载过程中,会输出获取镜像的每一层信息。
|
||||
|
||||
下载完成后,即可随时创建一个容器了。
|
||||
```
|
||||
$ sudo docker run -t -i centos /bin/bash
|
||||
bash-4.1#
|
||||
```
|
Reference in New Issue
Block a user