How does volumes work with dockerized jupyterhub?

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

If I have jupyterhub running inside docker container (like e.g. and it uses DockerSpawner that spawns user server as another docker container (e.g. and inside my I add:

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?

It’s on the docker host filesystem.