containers / ai-lab-recipes

Examples for building and running LLM services and applications locally with Podman
Apache License 2.0
98 stars 99 forks source link

Error building bootc container #568

Open littlefish-littlefish opened 2 months ago

littlefish-littlefish commented 2 months ago

Following the instructions here: https://github.com/containers/ai-lab-recipes/tree/main/training

Building bootc container image, the following command failed with error:

Command: make nvidia FROM=registry.redhat.io/rhel9/rhel-bootc:9.4

Error: [2/2] STEP 24/34: RUN grep -q /usr/lib/containers/storage /etc/containers/storage.conf || sed -i -e '/additionalimage./a "/usr/lib/containers/storage",' /etc/containers/storage.conf && cp /run/.input/ilab /usr/local/bin/ cp: cannot stat '/run/.input/ilab': No such file or directory Error: building at STEP "RUN grep -q /usr/lib/containers/storage /etc/containers/storage.conf || sed -i -e '/additionalimage./a "/usr/lib/containers/storage",' /etc/containers/storage.conf && cp /run/.input/ilab* /usr/local/bin/": while running runtime: exit status 1 make[1]: [Makefile:30: bootc] Error 1 make[1]: Leaving directory '/root/ai-lab-recipes/training/nvidia-bootc' make: [Makefile:75: nvidia] Error 2

ivanbaldo commented 2 months ago

Did you run make instruct-nvidia before that? The error still happens? Does it happen also if you omit the FROM=registry.redhat.io/rhel9/rhel-bootc:9.4 option?