# Run Tao inside docker

**URL:** <https://forums.developer.nvidia.com/t/run-tao-inside-docker/202548>\
**Category:** TAO Toolkit\
**Tags:** docker, tao\
**Created:** [February 5, 2022, 2:40pm UTC](https://forums.developer.nvidia.com/t/run-tao-inside-docker/202548 "2022-02-05T14:40:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![P1994](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@P1994](https://forums.developer.nvidia.com/u/P1994)\
**Post date:** [February 5, 2022, 2:40pm UTC](https://forums.developer.nvidia.com/t/run-tao-inside-docker/202548/1 "2022-02-05T14:40:57Z")

</div>

Please provide the following information when requesting support.

• Hardware 3090  
• Network Type (Yolo\_v4)  
• TAO  
• How to reproduce the issue ? (This is for errors. Please share the command line and the detailed log here.)

Hi I am trying to run tao in a docker container (it will build, train, deploy, from a script so assuming tao is installed etc on the PC is not an option so building a docker container I think is the best way). I have looked at this forum post:

> [@Run TLT inside docker](https://forums.developer.nvidia.com/t/run-tlt-inside-docker/181992):
>
> I want to use tlt pre-trained models. I do not have root access to the server and only have docker access. We use 3090 GPU. Can I pull the docker and train models inside docker? Should I have NVIDIA runtime? Should I use tlt2 or tlt3? Can I install tlt launcher inside the docker or I have to use a host machine?

but running:

```auto
sudo docker run --gpus all -it -v /workspace/tlt-experiments/:/workspace/tlt-experiments -p 8888:8888 nvcr.io/nvidia/tao/tao-toolkit-pyt:v3.21.11-py3 /bin/bash

```

followed by:

```auto
yolo_v4 train

```

leads to command not found - how can I install this so it works - as I understand if I do pip install nvidia-tao in the container that will run a container within another container which is not what I want?

Thanks

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [February 5, 2022, 3:50pm UTC](https://forums.developer.nvidia.com/t/run-tao-inside-docker/202548/2 "2022-02-05T15:50:46Z")

</div>

> [@P1994](#):
>
> `-p 8888:8888 nvcr.io/nvidia/tao/tao-toolkit-pyt:v3.21.11-py3 /bin/bash`

Can you set correct docker name?  
Refer to [GPU-optimized AI, Machine Learning, & HPC Software | NVIDIA NGC | NVIDIA NGC](https://catalog.ngc.nvidia.com/orgs/nvidia/teams/tao/containers/tao-toolkit-tf/tags)  
For yolov4, You can use [nvcr.io/nvidia/tao/tao-toolkit-tf:v3.21.11-tf1.15.5-py3](http://nvcr.io/nvidia/tao/tao-toolkit-tf:v3.21.11-tf1.15.5-py3)

---

<div class="post-metadata">

**Author:** ![P1994](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@P1994](https://forums.developer.nvidia.com/u/P1994)\
**Post date:** [February 5, 2022, 5:39pm UTC](https://forums.developer.nvidia.com/t/run-tao-inside-docker/202548/3 "2022-02-05T17:39:31Z")

</div>

Hello - thanks! on that one I get a hardware compatibility error but can at least see the yolov4 command

```auto
pycuda._driver.LogicError: cuInit failed: forward compatibility was attempted on non supported HW

```

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [February 6, 2022, 4:47pm UTC](https://forums.developer.nvidia.com/t/run-tao-inside-docker/202548/4 "2022-02-06T16:47:28Z")

</div>

**There is no update from you for a period, assuming this is not an issue any more.  
Hence we are closing this topic. If need further support, please open a new one.  
Thanks**

Could you share the detailed steps?  
Which docker did you trigger?  
And then how did you trigger tao docker?

More, can you share the "$ nvidia-smi " result of your local PC?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [February 20, 2022, 4:47pm UTC](https://forums.developer.nvidia.com/t/run-tao-inside-docker/202548/5 "2022-02-20T16:47:50Z")

</div>

Closed on February 20, 2022, 4:47pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
