From 5a551e0956229cdbd5137c74a3d967520c5a8c68 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Tue, 18 May 2021 09:31:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20docker=20start=20-a=20?= =?UTF-8?q?=E7=9A=84=E7=94=A8=E6=B3=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- Software/Applications/Docker/Docker_安装和使用.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Software/Applications/Docker/Docker_安装和使用.md b/Software/Applications/Docker/Docker_安装和使用.md index 863ad84..bd1f891 100644 --- a/Software/Applications/Docker/Docker_安装和使用.md +++ b/Software/Applications/Docker/Docker_安装和使用.md @@ -105,7 +105,10 @@ docker commit : exit # 运行某已存在的容器 docker start +# 连接到已运行的容器上 docker attach +# 运行并连接到已存在的容器上 +docker start -a # 在某已运行的容器中执行命令 docker exec -it # 迁移镜像