wait
Usage: hyper wait [OPTIONS] CONTAINER [CONTAINER...]
Block until a container stops, then print its exit code
--help Print usageExamples
Start a container in the background.
$ hyper run -d --name=my_container ubuntu bashRun hyper wait, which should block until the container exits.
$ hyper wait my_containerIn another terminal, stop the first container. The hyper wait command above returns the exit code.
$ hyper stop my_containerThis is the same hyper wait command from above, but it now exits, returning 0.
$ hyper wait my_container
0Last updated