Команда '/ bin / sh -c conda update conda' вернула ненулевой код: 127 - PullRequest
0 голосов
/ 10 марта 2019

Я на Mac и пытаюсь создать новый контейнер (новый для Docker), я могу нормально установить Anaconda, и обновление Anaconda изнутри контейнера работает, однако, когда я пытаюсь run conda update conda из Dockerfile, я получаюошибка ниже:

Что я делаю не так?

Спасибо!

The command '/bin/sh -c conda update conda' returned a non-zero code: 127




FROM ubuntu:18.04
RUN apt-get update && \
    apt-get -y install curl && \
    apt-get -y install python3 && \
    apt-get -y install python3-pip && \
    python3 -m pip install --upgrade pip && \
    apt-get -y install wget && \
    apt-get -y install vim && \
    pip3 install tensorflow && \
    pip3 install keras


RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh -O ~/anaconda.sh && \
    /bin/bash ~/anaconda.sh -b -p /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

RUN conda update conda
RUN conda install opencv
RUN conda install matplotlib
RUN conda install pandas
RUN conda install seaborn
...