aloof-application-80784
01/17/2023, 7:08 PMalpine images. Our security hardening policies will be much easier to work with if we’re able to run in the alpine image 3.10.9-alpine3.17 .
@wide-battery-59962 @cold-actor-8608 @quiet-waiter-82239ancient-application-36103
01/17/2023, 7:10 PMancient-application-36103
01/17/2023, 7:10 PMaloof-application-80784
01/17/2023, 7:48 PM3.10.8-buster and 3.10.8-bullseye, but running 3.10.8-alpine3.17 results in this error:
2023-01-17 13:39:50.551 [1673984330327840/start/1 (pid 24157)] [pod t-66kzw-k7vvh] Task is starting (Pod is pending, Container is terminated - StartError - failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown)...
When I replace bash with sh, I get the following error:
[2023-01-17, 13:42:25 ] {{pod_manager.py:197}} INFO - sh: metaflow_CapacityManagementTrainingFlow_linux-64_f61c1642322721c49557ef07da6e069319773a80/bin/python: not found .
Any advice here?fancy-eve-65019
01/17/2023, 8:49 PM@conda ?aloof-application-80784
01/17/2023, 9:00 PMfancy-eve-65019
01/17/2023, 9:00 PMtar , then a downloaded code package is not unpacked, hence no python could be found.
Flows with @conda require even more tools IIRC, something like wget.
The real error messages are hidden but you could run the same command inside docker container locally. This way I managed to debug what was missed inside my custom docker images.fancy-eve-65019
01/17/2023, 9:07 PMpython or pip are missedfancy-eve-65019
01/17/2023, 9:12 PMFROM nvidia/cuda:11.3.1-runtime-ubuntu20.04
RUN apt-get update --fix-missing && \
apt-get install -y python3 python3-pip wget && \
apt-get clean && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && \
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10aloof-application-80784
01/17/2023, 10:10 PM