怪我咯2017-04-25 09:06:22
Usage: docker start [OPTIONS] CONTAINER [CONTAINER...]
Start one or more stopped containers
Options:
-a, --attach Attach STDOUT/STDERR and forward signals
--detach-keys string Override the key sequence for detaching a container
--help Print usage
-i, --interactive Attach container's STDIN
-a
只是打开了输出流,你能持续得到容器的输出,而加-i
才能打开输入流,这样你的操作才能体现到容器内。如果不加,就会出现你这种假死
situation.