# How does volumes work with dockerized jupyterhub?

**URL:** <https://discourse.jupyter.org/t/how-does-volumes-work-with-dockerized-jupyterhub/6395>\
**Category:** General\
**Created:** [October 15, 2020, 9:41pm UTC](https://discourse.jupyter.org/t/how-does-volumes-work-with-dockerized-jupyterhub/6395 "2020-10-15T21:41:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IneedHELP](https://avatars.discourse-cdn.com/v4/letter/i/eada6e/32.png) [@IneedHELP](https://discourse.jupyter.org/u/IneedHELP)\
**Post date:** [October 15, 2020, 9:41pm UTC](https://discourse.jupyter.org/t/how-does-volumes-work-with-dockerized-jupyterhub/6395/1 "2020-10-15T21:41:49Z")

</div>

Hi, I have a quick question but cannot find answer anywhere.

If I have jupyterhub running inside docker container (like e.g. [https://hub.docker.com/r/jupyterhub/jupyterhub/](https://hub.docker.com/r/jupyterhub/jupyterhub/)) and it uses DockerSpawner that spawns user server as another docker container (e.g. [https://hub.docker.com/r/jupyter/datascience-notebook](https://hub.docker.com/r/jupyter/datascience-notebook)) and inside my jupyterhub\_config.py I add:

```auto
c.DockerSpawner.volumes = { '/home/XXX/mynotebooks/':notebook_dir }

```

I know that notebook\_dir is inside container used by user, but where is `/home/XXX/mynotebooks/`?  
Is it inside container with jupyterhub or on host computer?

---

<div class="post-metadata">

**Author:** ![markperri](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/markperri/32/2187_2.png) [@markperri](https://discourse.jupyter.org/u/markperri)\
**Post date:** [November 7, 2020, 10:08pm UTC](https://discourse.jupyter.org/t/how-does-volumes-work-with-dockerized-jupyterhub/6395/2 "2020-11-07T22:08:08Z")

</div>

It’s on the docker host filesystem.
