# Starting any Jupyter Notebook in a JupyterHub with a file .ipynb

**URL:** <https://discourse.jupyter.org/t/starting-any-jupyter-notebook-in-a-jupyterhub-with-a-file-ipynb/3077>\
**Category:** JupyterHub\
**Created:** [January 17, 2020, 6:55pm UTC](https://discourse.jupyter.org/t/starting-any-jupyter-notebook-in-a-jupyterhub-with-a-file-ipynb/3077 "2020-01-17T18:55:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_Abreu](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/alexandre_abreu/32/1474_2.png) [@Alexandre\_Abreu](https://discourse.jupyter.org/u/Alexandre_Abreu)\
**Post date:** [January 17, 2020, 6:55pm UTC](https://discourse.jupyter.org/t/starting-any-jupyter-notebook-in-a-jupyterhub-with-a-file-ipynb/3077/1 "2020-01-17T18:55:50Z")

</div>

Hello guys,

I’m implementing a JupyterHub in a cloud using Docker. When a new user is created a new container in Docker is created for that user. I’d like to put a file .ipynb inside the volume of the user container such that every new user would has acess to this file since the first time using his Jupyter Notebook. I can do this manualy by coping the file to his volume inside his container, however, I’d like that this operation was automatic every new container created to the user.  
Is it possible? How to do?

P.S.: it’s the first time I’m using Docker.

---

<div class="post-metadata">

**Author:** ![00Kai0](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/00kai0/32/1144_2.png) [@00Kai0](https://discourse.jupyter.org/u/00Kai0)\
**Post date:** [January 19, 2020, 12:14pm UTC](https://discourse.jupyter.org/t/starting-any-jupyter-notebook-in-a-jupyterhub-with-a-file-ipynb/3077/2 "2020-01-19T12:14:00Z")

</div>

Do you use the default docker image from jupyter?  
There are two ways for you, but all are create a new docker image based on the default one:

1. copy the .ipynb file you want in the runtime container and rebuild a new image.
2. edit a .Dockerfile file like this :

```auto
FROM jupyter/base-notebook
COPY <source path> <taget path>

```

---

<div class="post-metadata">

**Author:** ![Alexandre\_Abreu](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/alexandre_abreu/32/1474_2.png) [@Alexandre\_Abreu](https://discourse.jupyter.org/u/Alexandre_Abreu)\
**Post date:** [January 21, 2020, 2:00pm UTC](https://discourse.jupyter.org/t/starting-any-jupyter-notebook-in-a-jupyterhub-with-a-file-ipynb/3077/3 "2020-01-21T14:00:03Z")

</div>

thank you 00Kai0!  
That’s it!

=)
