Fixe the race condition between docker run and docker logs from #428 Upstream-commit: 0eb425426f47199fb5b343dcd6c5410af87f0446 Component: engine