Error to update runtime python 3.11

0

Hello everybody.

I'm trying to update the runtime of all of the lambdas in my system but when I try to deploy I get the next error:

***#4 ERROR: failed to register layer: mkdir /usr/lib64/perl5/vendor_perl/auto/Encode/EBCDIC: no space left on device

[1/2] FROM public.ecr.aws/sam/build-python3.9@sha256:60383e14f8f26ba227603cd5ee9a6043ce09a129d44d5b38d2f24384a7ce5fa5:


Dockerfile:4

2 | # passed as build arg. The default allows to do docker build . when testing. 3 | ARG IMAGE=public.ecr.aws/sam/build-python3.7 4 | >>> FROM $IMAGE 5 |
6 | ARG PIP_INDEX_URL

ERROR: failed to solve: failed to register layer: mkdir /usr/lib64/perl5/vendor_perl/auto/Encode/EBCDIC: no space left on device jsii.errors.JavaScriptError: Error: docker exited with status 1 --> Command: docker build -t cdk-770d7b96a566806920ccfc959a9c340d8441369d1b8ee630fdb63c4507a7eff4 --platform "linux/amd64" --build-arg "IMAGE=public.ecr.aws/sam/build-python3.9" "/tmp/jsii-kernel-FhfsaQ/node_modules/@aws-cdk/aws-lambda-python-alpha/lib"***

I'm a little confuse and I don't know why is the reason of that error. Somebody help me please.

已提问 2 个月前148 查看次数
1 回答
0

Hello, Edgar.

The error message no space left on device indicates that Docker has run out of disk space while trying to build your image. This is a common issue when Docker's storage, typically located in /var/lib/docker, becomes full with images, containers, volumes, or build cache. Here are steps to resolve the issue:

  1. Check Disk Usage Verify if the disk is full using the command: df -h

  2. Cleanup Unused Docker Resources To free up space, remove unused Docker objects: docker system prune

For a more thorough cleanup (including volumes): docker system prune -a --volumes

    1. Remove Specific Docker Images List all images: docker images

Remove unneeded images: docker rmi [IMAGE_ID] Replace [IMAGE_ID] with the actual image ID.

  1. Increase Disk Space Consider increasing the disk space for Docker's storage partition, if necessary.

  2. Move Docker's Storage Location If needed, change Docker's storage directory by editing /etc/docker/daemon.json:

{ "data-root": "/path/to/new/docker/data" }

Replace /path/to/new/docker/data with the directory path you want to use that has free space.

Then, restart Docker:

sudo systemctl restart docker

Please accept this answer. Otherwise, please let me know for us to troubleshoot.

Regards, Pablo Silva

profile pictureAWS
已回答 2 个月前
profile picture
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容