From 94a51885998a2303fe4a201321b1e82e1ed9ad39 Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Thu, 19 Dec 2019 11:19:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=AE=B9=E5=99=A8=E8=BF=81?= =?UTF-8?q?=E7=A7=BB=E6=96=B9=E6=B3=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ithink.chan --- Software/Applications/Docker/Docker_安装和使用.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Software/Applications/Docker/Docker_安装和使用.md b/Software/Applications/Docker/Docker_安装和使用.md index 04d8254..1af99ed 100644 --- a/Software/Applications/Docker/Docker_安装和使用.md +++ b/Software/Applications/Docker/Docker_安装和使用.md @@ -34,13 +34,15 @@ docker ps # 进入正在运行的容器 docker exec -it bash # 提交针对谋容器的修改 -docker commit : +docker commit : # 退出容器 exit -# 保存镜像以便于迁移 +# 迁移镜像 docker save -o -# 导入要迁移的镜像 docker load -i +# 迁移容器 +docker export -o +docker import : ``` ### 容器操作 @@ -51,9 +53,9 @@ docker container ls -a # 获得容器id docker container ls -a -p # 停止容器 -docker container stop +docker container stop # 删除容器 -docker container rm +docker container rm ``` ### 镜像操作