4bffdb208b499cc347e1124d3f1e6874513bab1c
This fix addressed the issue of test TestRestartStoppedContainer in #21211. Inside the test, a `docker restart` command is followed by a `docker logs` command. However, `docker restart` returns immediately so there is no guarantee that `docker logs` will wait until the restarted container completes the command `echo foobar`. This fix use the check of `{{.State.Running}} = false` to make sure that the restarted container has already finished, before invoking the `docker logs` command. The timeout is set to 20s to make sure it passes WindowsTP4 check. This fixes #21211. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Upstream-commit: 48ccdd46aea4bb16925d0a333f792a712f1c11dc Component: engine
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%