补充 docker start -a 的用法.
Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
6bad7205ab
commit
5a551e0956
|
@ -105,7 +105,10 @@ docker commit <container id> <repository>:<tag>
|
||||||
exit
|
exit
|
||||||
# 运行某已存在的容器
|
# 运行某已存在的容器
|
||||||
docker start <container id>
|
docker start <container id>
|
||||||
|
# 连接到已运行的容器上
|
||||||
docker attach <container id>
|
docker attach <container id>
|
||||||
|
# 运行并连接到已存在的容器上
|
||||||
|
docker start -a <container id>
|
||||||
# 在某已运行的容器中执行命令
|
# 在某已运行的容器中执行命令
|
||||||
docker exec -it <container name/id> <cmd and args>
|
docker exec -it <container name/id> <cmd and args>
|
||||||
# 迁移镜像
|
# 迁移镜像
|
||||||
|
|
Loading…
Reference in New Issue