title: RUN conda activate not works. It always shows "restart your shell after running 'conda init' " , Dockerfile
body: <p>I'm going to build a cuda &amp; anaconda docker file, but after trying many times, it always warning me the error.</p>
  
  <p>The log of azure pipelines.</p>
  
  <p><a href="https://i.stack.imgur.com/RvRlS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RvRlS.png" alt="enter image description here"></a>
  and my Dockerfile:</p>
  
  <pre><code>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 \
      &amp;&amp; apt-get install -y wget git make python3-dev libglib2.0-0 libsm6 libxext6 libxrender-dev python3-pip \
      &amp;&amp; apt-get clean
  
  RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh -O ~/anaconda.sh &amp;&amp; \
      /bin/bash ~/anaconda.sh -fbp /opt/conda &amp;&amp; \
      rm ~/anaconda.sh &amp;&amp; \
      ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh &amp;&amp; \
      echo ". /opt/conda/etc/profile.d/conda.sh" &gt;&gt; ~/.bashrc &amp;&amp; \
      echo "conda activate base" &gt;&gt; ~/.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.
  </code></pre>
  
  <p>There is 'RUN conda init bash' before 'activate'. So hope guys give me some tips. Thanks in advance.</p>