【发布时间】:2020-06-21 03:47:15
【问题描述】:
我打算建一个cuda & anaconda docker 文件,但是尝试了很多次后,它总是警告我错误。
天蓝色管道的日志。
FROM rogerchen/simpledet:cuda10 as cuda
WORKDIR /app
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV PATH /opt/conda/bin:$PATH
RUN apt-get update \
&& apt-get install -y wget git make python3-dev libglib2.0-0 libsm6 libxext6 libxrender-dev python3-pip \
&& apt-get clean
RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh -O ~/anaconda.sh && \
/bin/bash ~/anaconda.sh -fbp /opt/conda && \
rm ~/anaconda.sh && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc
SHELL ["/bin/bash", "-c"]
RUN conda update conda -y
RUN conda create -n simpledet python=3.7 -y
RUN conda init bash
RUN conda activate simpledet
RUN conda install cudatoolkit=10.
在“激活”之前有“RUN conda init bash”。所以希望大家给点建议。提前致谢。
【问题讨论】:
-
除非绝对必要,否则请不要将信息共享为图像。请参阅:meta.stackoverflow.com/questions/303812/…、idownvotedbecau.se/imageofcode、idownvotedbecau.se/imageofanexception。
标签: bash anaconda dockerfile conda