补充 docker start -a 的用法.

Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
rick.chan 2021-05-18 09:31:01 +08:00
parent 6bad7205ab
commit 5a551e0956
1 changed files with 3 additions and 0 deletions

View File

@ -105,7 +105,10 @@ docker commit <container id> <repository>:<tag>
exit
# 运行某已存在的容器
docker start <container id>
# 连接到已运行的容器上
docker attach <container id>
# 运行并连接到已存在的容器上
docker start -a <container id>
# 在某已运行的容器中执行命令
docker exec -it <container name/id> <cmd and args>
# 迁移镜像