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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ