# OpenMC within Docker

**URL:** <https://openmc.discourse.group/t/openmc-within-docker/3199>\
**Category:** User Support\
**Created:** [July 10, 2023, 12:49pm UTC](https://openmc.discourse.group/t/openmc-within-docker/3199 "2023-07-10T12:49:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Sergey](https://openmc.discourse.group/u/Sergey)\
**Post date:** [July 10, 2023, 12:49pm UTC](https://openmc.discourse.group/t/openmc-within-docker/3199/1 "2023-07-10T12:49:57Z")

</div>

Hello!

I am a new user of OpenMC,

 ![2023-07-10_15-45-20](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/c/c8c9cc20fdb8b613189a4c75342aad4cba4b23e5.png)

I have got a error “Segmentation fault”

Could you help me to solve this problem?

With Docker it is difficult to use debug

---

<div class="post-metadata">

**Author:** ![Sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Sergey](https://openmc.discourse.group/u/Sergey)\
**Post date:** [July 10, 2023, 12:53pm UTC](https://openmc.discourse.group/t/openmc-within-docker/3199/2 "2023-07-10T12:53:04Z")

</div>

`geometry.xml`

```auto
<geometry>
  <cell id="1" material="1" region="-1" />
  <cell id="2" material="void" region="1" />

  <surface id="1" type="sphere" coeffs="0.0 0.0 0.0 10.0" boundary="vacuum" />
</geometry>

```

`materials.xml` , ,

```auto
<materials>
  <material id="1">
    <density value="19.1" units="g/cm3" />
    <nuclide name="U235" wo="0.95" />
    <nuclide name="U238" wo="0.05" />
  </material>
</materials>

```

`settings.xml`

```auto
<settings>
  <run_mode>eigenvalue</run_mode>
  <particles>1000</particles>
  <batches>100</batches>
  <inactive>10</inactive>
  <source>
    <space type="box" parameters="-10 -10 -10 20 20 20" />
  </source>
</settings>

```

I changed wls2 parameters

memory=30GB  
processors=10

so it might be enough for this process…

---

<div class="post-metadata">

**Author:** ![LukeSeifert](https://avatars.discourse-cdn.com/v4/letter/l/50afbb/32.png) [@LukeSeifert](https://openmc.discourse.group/u/LukeSeifert)\
**Post date:** [July 10, 2023, 1:53pm UTC](https://openmc.discourse.group/t/openmc-within-docker/3199/3 "2023-07-10T13:53:14Z")

</div>

It looks like your source space is generating particles outside of your geometry. If you change the geometry.xml to `<space type="box" parameters="-5 -5 -5 5 5 5" />` then it should run properly.

---

<div class="post-metadata">

**Author:** ![Sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Sergey](https://openmc.discourse.group/u/Sergey)\
**Post date:** [July 10, 2023, 2:16pm UTC](https://openmc.discourse.group/t/openmc-within-docker/3199/4 "2023-07-10T14:16:22Z")

</div>

Thank you! its have run properly.  
sorry for bothering you
