首页 > 问答 > 正文
必须Ctrl+c 后再attach, 可以不是说可以-a连上么:(
怪我咯2017-04-25 09:06:22
1
2
3
4
5
6
7
8
9
<code>Usage: docker start [OPTIONS] CONTAINER [CONTAINER...]
Start one or more stopped containers
Start one
or
more stopped containers
Options:
-a, --attach Attach STDOUT/STDERR and forward signals
-a, --attach Attach STDOUT/STDERR
and
forward signals
--detach-keys string Override the key sequence for detaching a container
--detach-keys string Override the key sequence
for
detaching a container
--help Print usage
--help
Print
usage
-i, --interactive Attach container's STDIN</code>
-a只是打开了输出流,你能持续得到容器的输出,而加-i才能打开输入流,这样你的操作才能体现到容器内。如果不加,就会出现你这种假死的情况。
-a
-i
假死