serverless-python-requirements icon indicating copy to clipboard operation
serverless-python-requirements copied to clipboard

Stdout and stderr are not printed on docker run command error

Open zhemaituk opened this issue 2 years ago • 0 comments

Reproduced on the latest version: 5.4.0

It stopped logging the docker command's stdout and stderr, hiding actual underlying error. To reproduce try:

dockerizePip: true
dockerImage: not-existing-image:123

Actual log output: Exited with code 125. Stdout: undefined. Stderr: undefined

Expected: stdout/stderr produced by docker command is printed to the logs displaying the actual error:

docker: Error response from daemon: pull access denied for not-existing-image, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

zhemaituk avatar Jun 06 '22 20:06 zhemaituk