Repo2docker multiple conda environments?


Very excited that you guys are tackling the R version 3.5/6 question!
I have another one. Once the container is made:

What is the process for:

  1. Creating a new persistent conda environment
  2. Activating the environment
  3. Restarting the jupyter notebook/hub from this new environment.

I have tried:

conda create -n HD
conda init
exec bash
conda activate HD

This puts me in the right place with regards to the environment.
However the notebook in the container is already running on 8888 from the base environment and I am not quite sure how to stop that and start a notebook from the activated environment.

jupyter notebook stop 8888 failed.

In theory I could make a new image, but that takes way longer than the quick new conda environment activation/deactivation setup for project organization.