GoogleContainerTools / jib

🏗 Build container images for your Java applications.
Apache License 2.0
13.65k stars 1.44k forks source link

fix: address windows deadlock issue when determining docker environment info #4288

Closed mpeddada1 closed 2 months ago

mpeddada1 commented 3 months ago

For https://github.com/GoogleContainerTools/jib/issues/4267

Reproducer: https://github.com/mpeddada1/windows_deadlock (note that this reproducer doesn't using docker but showcases the same issue observed in https://github.com/GoogleContainerTools/jib/issues/4267). According to the official documentation:

Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, or even deadlock.