# Neural depth engine to docker image

**URL:** <https://community.stereolabs.com/t/neural-depth-engine-to-docker-image/3921>\
**Category:** Python\
**Tags:** docker\
**Created:** [November 8, 2023, 9:42am UTC](https://community.stereolabs.com/t/neural-depth-engine-to-docker-image/3921 "2023-11-08T09:42:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phyrokar](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@Phyrokar](https://community.stereolabs.com/u/Phyrokar)\
**Post date:** [November 8, 2023, 9:42am UTC](https://community.stereolabs.com/t/neural-depth-engine-to-docker-image/3921/1 "2023-11-08T09:42:40Z")

</div>

Hello, Im running my zed application within a container. Does someone know how I can add the neural depth engine to the image?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [November 8, 2023, 9:47am UTC](https://community.stereolabs.com/t/neural-depth-engine-to-docker-image/3921/2 "2023-11-08T09:47:39Z")

</div>

Hi @Phyrokar  
when you install the ZED SDK the NEURAL engine is already available.

The AI model and its optimization will be performed the first time the camera is opened.  
The problem is that if you do not bind an external folder this operation will be performed each time you start a new instance of the container.

Read the [Docker integration online documentation](https://www.stereolabs.com/docs/docker/) for more information regarding the correct configuration of the volumes.

---

<div class="post-metadata">

**Author:** ![Phyrokar](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@Phyrokar](https://community.stereolabs.com/u/Phyrokar)\
**Post date:** [November 8, 2023, 9:53am UTC](https://community.stereolabs.com/t/neural-depth-engine-to-docker-image/3921/3 "2023-11-08T09:53:43Z")

</div>

So the optimization for the neural depth engine needs to be always done when for example restarting the container?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [November 8, 2023, 10:01am UTC](https://community.stereolabs.com/t/neural-depth-engine-to-docker-image/3921/4 "2023-11-08T10:01:28Z")

</div>

That’s correct if you don’t add a shared volume. Read [here](https://www.stereolabs.com/docs/docker/configure-ros2-dockerfile/#volumes)
