# Question about Docker pre-exercises for cms open data

**URL:** <https://opendata-forum.cern.ch/t/question-about-docker-pre-exercises-for-cms-open-data/151>\
**Category:** CMS\
**Created:** [17 December 2022 19:32 UTC](https://opendata-forum.cern.ch/t/question-about-docker-pre-exercises-for-cms-open-data/151 "2022-12-17T19:32:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hazheng](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/h/d26b3c/32.png) [@hazheng](https://opendata-forum.cern.ch/u/hazheng)\
**Post date:** [17 December 2022 19:32 UTC](https://opendata-forum.cern.ch/t/question-about-docker-pre-exercises-for-cms-open-data/151/1 "2022-12-17T19:32:46Z")

</div>

Hi,

I follow the instruction on “[Using Docker with the CMS open data – Docker pre-exercises](https://cms-opendata-workshop.github.io/workshop2022-lesson-docker/03-docker-for-cms-opendata/index.html)” to install the container using wsl2. And I am stuck at the first step for installing the container for cms\_open\_data\_work. I can’t get expected output for " ```  
Setting up CMSSW\_7\_6\_7  
CMSSW should now be available.  
This is a standalone image for CMSSW\_7\_6\_7 slc6\_amd64\_gcc493.  
(/code/CMSSW\_7\_6\_7/src)

```auto
Did I miss some important steps? Other than that, the container for python tool and root is working.
```

---

<div class="post-metadata">

**Author:** ![hazheng](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/h/d26b3c/32.png) [@hazheng](https://opendata-forum.cern.ch/u/hazheng)\
**Post date:** [17 December 2022 19:54 UTC](https://opendata-forum.cern.ch/t/question-about-docker-pre-exercises-for-cms-open-data/151/2 "2022-12-17T19:54:57Z")

</div>

The command i use is

```auto
docker run -it --name my_od -P -p 5901:5901 -p 6080:6080 -v ${HOME}/cms_open_data_work:/code cmsopendata/cmssw_7_6_7-slc6_amd64_gcc493 /bin/bash

```

it doesn’t have any output.

 ![image](https://opendata-forum.cern.ch/uploads/default/original/1X/700a7978b5ff36fc54abde97ebb1354aaeea0798.png)

---

<div class="post-metadata">

**Author:** ![kati](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/k/5f9b8f/32.png) [@kati](https://opendata-forum.cern.ch/u/kati)\
**Post date:** [18 December 2022 20:38 UTC](https://opendata-forum.cern.ch/t/question-about-docker-pre-exercises-for-cms-open-data/151/3 "2022-12-18T20:38:26Z")

</div>

Hi! Thanks for your interest in the CMS open data. If you are running the `docker run ...` command in your WSL2 Linux Ubuntu shell, the instructions in the red box under the WSL2 Windows tab on page [Using Docker with the CMS open data – Docker pre-exercises](https://cms-opendata-workshop.github.io/workshop2022-lesson-docker/03-docker-for-cms-opendata/index.html) should help you forward:

> If the docker command exits without giving you the output above, see [this post](https://opendata-forum.cern.ch/t/running-cms-opendata-containers-in-wsl2/30) in the CERN Open Data forum (note in particular that the `.wslconfig` file that you need to add must not have a file extension, if Windows adds it automatically, rename the file).

Best, Kati  
for the CMS open data team

---

<div class="post-metadata">

**Author:** ![hazheng](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/h/d26b3c/32.png) [@hazheng](https://opendata-forum.cern.ch/u/hazheng)\
**Post date:** [18 December 2022 21:28 UTC](https://opendata-forum.cern.ch/t/question-about-docker-pre-exercises-for-cms-open-data/151/4 "2022-12-18T21:28:33Z")

</div>

Hi Kati,  
after following your instruction to add .wslconfig and shut down wsl with command prompt, nothing changed.

The “vsyscall=emulate” didn’t show up. And my original “docker run …” command still returns nothing.  
And then I follow your to follow your second instruction to check ‘.wslconfig.txt’, but I couldn’t find the ‘.wsl’ directory. Could it be some other name?

---

<div class="post-metadata">

**Author:** ![hazheng](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/h/d26b3c/32.png) [@hazheng](https://opendata-forum.cern.ch/u/hazheng)\
**Post date:** [18 December 2022 21:30 UTC](https://opendata-forum.cern.ch/t/question-about-docker-pre-exercises-for-cms-open-data/151/5 "2022-12-18T21:30:59Z")

</div>

![image](https://opendata-forum.cern.ch/uploads/default/original/1X/2c2d85f74d329218941251afc13e627e379e4d26.png)

---

<div class="post-metadata">

**Author:** ![hazheng](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/h/d26b3c/32.png) [@hazheng](https://opendata-forum.cern.ch/u/hazheng)\
**Post date:** [18 December 2022 21:32 UTC](https://opendata-forum.cern.ch/t/question-about-docker-pre-exercises-for-cms-open-data/151/6 "2022-12-18T21:32:16Z")

</div>

![issue2](https://opendata-forum.cern.ch/uploads/default/original/1X/43e3c4ab056a0345faf73282bb8434aa5ae2bd25.png)  
I can’t find the .wsl directory.

---

<div class="post-metadata">

**Author:** ![hazheng](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/h/d26b3c/32.png) [@hazheng](https://opendata-forum.cern.ch/u/hazheng)\
**Post date:** [18 December 2022 22:01 UTC](https://opendata-forum.cern.ch/t/question-about-docker-pre-exercises-for-cms-open-data/151/7 "2022-12-18T22:01:39Z")

</div>

And I try using both the docker commands for wsl and linux to install the work container. But neither of them returns any output.

---

<div class="post-metadata">

**Author:** ![kati](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/k/5f9b8f/32.png) [@kati](https://opendata-forum.cern.ch/u/kati)\
**Post date:** [19 December 2022 05:10 UTC](https://opendata-forum.cern.ch/t/question-about-docker-pre-exercises-for-cms-open-data/151/8 "2022-12-19T05:10:51Z")

</div>

There’s no `.wsl` directory, just the file `.wslconfig`.  
You should create it in the `/mnt/c/Users/<your-windows-user-name>/` directory. If it is not there, the new settings won’t be applied and the `docker run` command with this container won’t start.

If `80420` is your Windows user name, you can do the following in the Linux terminal to create the file:

```auto
echo [wsl2] > /mnt/c/Users/80420/.wslconfig
echo kernelCommandLine = vsyscall=emulate >> /mnt/c/Users/80420/.wslconfig

```

---

<div class="post-metadata">

**Author:** ![hazheng](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/h/d26b3c/32.png) [@hazheng](https://opendata-forum.cern.ch/u/hazheng)\
**Post date:** [19 December 2022 05:38 UTC](https://opendata-forum.cern.ch/t/question-about-docker-pre-exercises-for-cms-open-data/151/9 "2022-12-19T05:38:24Z")

</div>

Appreciate your help. The issue is fixed.
