# Visualizer - Dynamic -data "{dataDir}" does not work in multiples instances

**URL:** https://discourse.paraview.org/t/visualizer-dynamic-data-datadir-does-not-work-in-multiples-instances/1329
**Category:** Web Support
**Created:** [February 20, 2019, 10:56pm UTC](https://discourse.paraview.org/t/visualizer-dynamic-data-datadir-does-not-work-in-multiples-instances/1329 "2019-02-20T22:56:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nicolasmaurotorres](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolasmaurotorres/32/359_2.png) [@nicolasmaurotorres](https://discourse.paraview.org/u/nicolasmaurotorres)
#### Post date: [February 20, 2019, 10:56pm UTC](https://discourse.paraview.org/t/visualizer-dynamic-data-datadir-does-not-work-in-multiples-instances/1329/1 "2019-02-20T22:56:30Z")

</div>

Hi!

I have successfully installed the environment with docker in a virtual machine

I have a web client that uses Visualizer, each user tells to Visualizer which -data {dataDir} have to use but I’m struggling with that, its like visualizer married with the first --data {dataDir} that receives

This is my case, I have 2 users the first one do the request to visualizer with the dataDir = /opt/wslink-launcher/shared/specialist , it open well I can render all the files

 ![first%20call](https://discourse.paraview.org/uploads/default/original/2X/9/9e5bb99c2cf3dba968ec13d7e01a838aacf42f4d.png)

But when I log in the other user dataDir = /opt/wslink-launcher/shared/specializ the visualizer in the part of files it show me /Home and nothing else

 ![second%20call](https://discourse.paraview.org/uploads/default/original/2X/1/191018f9117e78b08739d9a7dea0cd0013ad2b41.png)

if I try the same but in a different order with the same users, I have the same result the second one shows me the /Home folder

This is my template.json

 ![config](https://discourse.paraview.org/uploads/default/original/2X/b/bf0f8ae098f7c44816cac343a55ec5b383d93b5f.png)

And to do the dynamic replace of {dataDir} i modified the launcher.py , in the createSession function i added the key “dataDir” to the replaceList

 ![modification%20launcher](https://discourse.paraview.org/uploads/default/original/2X/0/09111bf367d4981e248888e3eb861446212439b4.png)

And this is the call that my client does

 ![client%20call](https://discourse.paraview.org/uploads/default/original/2X/4/45b1bbf12ce550b1645d16633005bf67f079b2da.png)

So my question is, I’m missing out some configuration to have a proper dynamic -data ??

or is working as intended?

I dunno what else I could do

Thank you in advance!

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [February 20, 2019, 11:26pm UTC](https://discourse.paraview.org/t/visualizer-dynamic-data-datadir-does-not-work-in-multiples-instances/1329/2 "2019-02-20T23:26:55Z")

</div>

I’m guessing you are creating your own docker image?  
Is it based on the ParaViewWeb one? If so the session URL in your launcher config is not ideal.

The one that you can base your code from can be found [here](https://github.com/Kitware/paraviewweb/tree/master/tools/docker/visualizer)

Then the only thing that you need to do is remove that [line in your config](https://github.com/Kitware/paraviewweb/blob/master/tools/docker/visualizer/config/launcher/launcher-template.json#L30).

Then when you load your Visualizer you can pass the `dataDir` in the URL like that `...?dataDir=/data/user1`.

That’s it, nothing more really.
