-
Notifications
You must be signed in to change notification settings - Fork 365
🐛 [Bug] Can't build Docker image on Windows. #790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't think we have tried this usecase before. Is this building a Linux container on windows? Would you be using this with NVIDIA Docker or something? I think the first step is to figure out exactly what is failing. It seems like you are using a more modern base container (NGC 21.12) which uses a post 1.10 release build of PyTorch. We are aware of a few breaking changes in PyTorch in this container. I suggest you try to build the |
cc: @andi4191 |
Hi @narendasan, thanks for the response. Yes exactly, I'd like to build the docker image and optimize a PyTorch model on a Windows 10 notebook with either a Laptop NVIDIA GeForce RTX 3080 or a Laptop NVIDIA GeForce RTX 2060. I tried to directly use the NGC PyTorch container (see PR #755). On my PC with the RTX 3080 I installed this drivers (497.29), as suggested by the download guide. Same thing for my PC with the RTX 2060.
It gives me the following error:
Which I think is due to the fact that I didn't install the NVIDIA Container Toolkit (I'm not sure it's even possible to install it on a Windows machine since the instructions are just for Linux systems) In fact, if I run the same command without the Finally, I tried to run the image on a desktop Linux host with different GPUs (GeForce GTX 1080 Ti) and drivers ( Thanks |
This issue has not seen activity for 90 days, Remove stale label or comment or this will be closed in 10 days |
Hi @andreabonvini, I think the issue is with the code base version checked out here. Please checkout release/ngc/21.12 branch if you want to use NGC 21.12 container as BASE container. |
This issue has not seen activity for 90 days, Remove stale label or comment or this will be closed in 10 days |
Please see #1058 for building on windows. If this is not sufficient please file a new issue w/ the problem! |
Bug Description
I'm completely new to Docker but, after trying unsuccessfully to install Torch-TensorRT with its dependencies, I wanted to try this approach. However, when I try to follow the instructions I encounter a series of problems/bugs as described below:
To Reproduce
Steps to reproduce the behavior:
After installing Docker, run on command prompt the following commands in a local directory:
docker pull nvcr.io/nvidia/pytorch:21.12-py3
git clone https://github.com/NVIDIA/Torch-TensorRT.git
cd Torch-TensorRT
docker build --build-arg BASE=21.12 -f docker/Dockerfile -t torch_tensorrt:latest .
To solve this issue I followed the suggestion here and run:
sed -i -e 's/\r$//' scriptname.sh
Then, I retried with
docker build --build-arg BASE=21.12 -f docker/Dockerfile -t torch_tensorrt:latest .
And this time the error was:
What am I doing wrong? It may be completely trivial since I have no experience in Docker.
Expected behavior
No errors.
Environment
The text was updated successfully, but these errors were encountered: