This docker command works as expected:
docker run -i -t -p 7778:8888 continuumio/miniconda3 /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && mkdir /opt/notebooks && /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip='*' --port=8888 --no-browser --allow-root"
It starts miniconda with python 3 version installed. The problem is that it generates a random password to access jupyter when I go to ...
And there is no way to change the password. The only way is to create or update the config file jupyter_notebook_config.py found in home directory (sub-folder: ~/.jupyter) How do I save this file on host and mount it using -v parameter?
I can do this manually if I follow these 3 steps:
1) Login to ipython docker container
docker exec -it 6cbc bash
2) Run the following command...
jupyter notebook --generate-config
3) Copy the config file to the container using a command something like this...
docker cp ipython_kernel_config.py 6cbc8d829e4a:/.jupyter/jupyter_notebook_config.py
I am looking for a way to merge these 3 steps into the docker run command.