You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In codegen.py, auto_remove is set to True when running the pip install command. This results in the process exiting before stderr can be read, so for example you see something like this:
docker.errors.ContainerError: Command 'pip install --no-cache-dir --no-color --disable-pip-version-check --upgrade --requirement /project/requirements.txt --target /project/build' in image 'public.ecr.aws/lambda/python:3.7' returned non-zero exit status 1
If you change it to auto_remove=False, you get a useful error message:
docker.errors.ContainerError: Command 'pip install --no-cache-dir --no-color --disable-pip-version-check --upgrade --requirement /project/requirements.txt --target /project/build' in image 'public.ecr.aws/lambda/python:3.7' returned non-zero exit status 1: b"ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device: '/tmp/pip-unpack-zw24lvnb'\n\n"
(The fix for this particular error is to run docker image prune)
Activity
mmaeng commentedon Nov 4, 2022
#214 should resolve
Repro
kddejong commentedon Nov 4, 2022
Some details related to the
docker-pypackage:docker/docker-py#2684
docker/docker-py#2503