mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-10 11:54:37 +00:00
Fix issue#20, format following the guidelines
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## 存出和载入镜像
|
||||
|
||||
### 存出镜像
|
||||
如果要导出镜像到本地文件,可以使用`docker save`命令。
|
||||
如果要导出镜像到本地文件,可以使用 `docker save` 命令。
|
||||
```
|
||||
$ sudo docker images
|
||||
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
|
||||
@@ -11,7 +11,7 @@ $sudo docker save -o ubuntu_14.04.tar ubuntu:14.04
|
||||
```
|
||||
|
||||
### 载入镜像
|
||||
可以使用`docker load`从导出的本地文件中再导入到本地镜像库,例如
|
||||
可以使用 `docker load` 从导出的本地文件中再导入到本地镜像库,例如
|
||||
```
|
||||
$ sudo docker load --input ubuntu_14.04.tar
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user