starting from ubuntu:focal building an image i get the error:
(focal is needed because i need a libc version >= 2.29)
( at the end of the post there is the Dockerfile used )
any suggestion on how to fix it ?
Francesco
docker build -t ubuntu.focal.based.ml.image .
…
Installing collected packages: six, cycler, kiwisolver, Pillow, pyparsing, numpy, python-dateutil, matplotlib, pytz, pandas, lazy-loader, imageio, scipy, packaging, networkx, PyWavelets, tifffile, scikit-image
Successfully installed Pillow-9.0.1 PyWavelets-1.4.1 cycler-0.10.0 imageio-2.27.0 kiwisolver-1.3.1 lazy-loader-0.2 matplotlib-3.4.1 networkx-3.1 numpy-1.21.2 packaging-23.0 pandas-1.2.4 pyparsing-2.4.7 python-dateutil-2.8.1 pytz-2023.3 scikit-image-0.20.0 scipy-1.9.1 six-1.16.0 tifffile-2023.3.21
STEP 10: COMMIT ubuntu.focal.based.ml.image
Error: error committing container for step {Env:[TZ=Europe/Rome PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TZ=Europe/Rome DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true] Command:run Args:[pip3 install -r requirements.txt] Flags: Attrs:map Message:RUN pip3 install -r requirements.txt Original:RUN pip3 install -r requirements.txt}: error copying layers and metadata for container “b0aef0fff3a94062d80c25e5d3a5b0c38757068dacdd9c7d7a970f57d390ae30”: Error initializing source containers-storage:0fad32486517ef3640d404432bf126457dee6591488ecf3ac6770fad836d6fe5-working-container: error extracting layer “f1ae35f88683ac70c9755169d5c695b4a8b285465c2da4d8288dcd5eb75059ea”: lstat /users/frgrillo/.local/share/containers/storage/overlay/f1ae35f88683ac70c9755169d5c695b4a8b285465c2da4d8288dcd5eb75059ea/merged/usr/share/perl/5.30.0/ExtUtils/Typemaps: too many open files
and trying to increase the file number with the command below , it fails anyway
docker build --ulimit nofile=5000:5000 -t ubuntu.focal.based.ml.image .
STEP 9: RUN pip3 install -r requirements.txt
WARN[0000] signal: killed
ERRO[0000] container_linux.go:349: starting container process caused “process_linux.go:449: container init caused "process_linux.go:378: setting rlimits for ready process caused \"error setting rlimit type 7: operation not permitted\""”
container_linux.go:349: starting container process caused “process_linux.go:449: container init caused "process_linux.go:378: setting rlimits for ready process caused \"error setting rlimit type 7: operation not permitted\""”
error running container: error creating container for [/bin/sh -c pip3 install -r requirements.txt]: : exit status 1
Error: error building at STEP “RUN pip3 install -r requirements.txt”: error while running runtime: exit status 1
-gpk-ads-527:/nobackup/frgrillo/ubuntu.base.image
here the DOckerfile
-gpk-ads-527:/nobackup/frgrillo/ubuntu.base.image > cat Dockerfile
Base docker image version =
FROM ubuntu:focal
ARG DEBIAN_FRONTEND=noninteractive
ARG DEBCONF_NONINTERACTIVE_SEEN=true
ENV TZ=Europe/Rome
RUN apt-get update
#RUN apt install -y software-properties-common
#RUN add-apt-repository -y ppa:deadsnakes/ppa
#RUN apt-get install -y python3.10
RUN apt-get install -y python3-pip
RUN apt-get install -y supervisor
#RUN apt-get install -y procps iputils-ping vim iproute2
COPY requirements-ncs1001.txt requirements.txt
RUN pip3 install -r requirements.txt