# Launch JupyterLab by default via DockerSpawner

**URL:** <https://discourse.jupyter.org/t/launch-jupyterlab-by-default-via-dockerspawner/13067>\
**Category:** JupyterHub\
**Tags:** jupyterlab, jupyterhub\
**Created:** [February 17, 2022, 2:03pm UTC](https://discourse.jupyter.org/t/launch-jupyterlab-by-default-via-dockerspawner/13067 "2022-02-17T14:03:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![talha](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@talha](https://discourse.jupyter.org/u/talha)\
**Post date:** [February 17, 2022, 2:03pm UTC](https://discourse.jupyter.org/t/launch-jupyterlab-by-default-via-dockerspawner/13067/1 "2022-02-17T14:03:17Z")

</div>

Hi, I am trying to run The Littlest JupyterHub (TLJH) with each user getting their own docker container to work into via the DockerSpawner. The process to set things up worked fine but the users are being directed to the old `/tree` view even though the DockerSpawner config has the `/lab` set as the default URL to launch the JupyterLab by default for each user.

Here is the DockerSpawner config:

```nohighlight
from jupyter_client.localinterfaces import public_ips
c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'
c.JupyterHub.hub_ip = public_ips()[0]
c.DockerSpawner.name_template = "{username}"
c.DockerSpawner.volumes = {<VOLUMNES>}
c.DockerSpawner.default_url = '/lab'
c.DockerSpawner.image = '<SPAWNER-IMAGE>'

```

This is what the config file for tljh looks like

```nohighlight
users:
  admin:
  - admin
  allowed: []
auth:
  type: oauthenticator.awscognito.AWSCognitoAuthenticator

```

If there is any other information required to help solve this issue, feel free to request 🙂.
