我嘗試使用我的定義文件擴展pytorch docker 映像nnunet.def:Bootstrap: dockerFrom: pytorch/pytorch:1.4-cuda10.1-cudnn7-runtime%post? ? git clone https://github.com/NVIDIA/apex? ? cd apex? ? pip install -v --no-cache-dir ./%runscript? ? echo "Running nnunet container..."但是,當(dāng)我構(gòu)建此圖像(使用sudo singularity build image.sif nnunet.def)時,我收到一條錯誤消息,指出未找到 pip:...+ pip install -v --no-cache-dir .//.build-script-post: 6: /.build-script-post: pip: not foundFATAL:? ?failed to execute %post proc: exit status 127FATAL:? ?While performing build: while running engine: while running /usr/local/libexec/singularity/bin/starter: exit status 255為什么?更令人驚訝的是,當(dāng)我直接從這張圖片進入 shell 時: singularity shell docker://pytorch/pytorch:1.4-cuda10.1-cudnn7-runtime我使用 pip 沒有問題:Singularity> pip freezeasn1crypto==1.2.0backcall==0.1.0...為什么我不能在%post定義文件的部分中使用 pip?
從現(xiàn)有 docker 鏡像擴展 Singularity 鏡像的問題
30秒到達戰(zhàn)場
2023-06-27 16:12:55