From 3cf02c5e064eeca453ceb5cbecb182829ac35f1e Mon Sep 17 00:00:00 2001 From: Johannes Aalto Date: Wed, 6 Mar 2024 20:50:34 +0000 Subject: [PATCH] [Dev Container] Fix container build by preventing conda prompt (#121128) Without this the build will freeze with prompt: Proceed ([y]/n)? I'm using rootless podman in vscode instead of docker but I think it should not affect this. ..or does conda somehow detect Docker but not Podman? Anyway, this should not break anything. Btw, I also had to uncomment the line: "remoteUser": "root" in devcontainer.json to finish the post installation properly but I guess there might be other workarounds - and perhaps you don't want to run as root if your container has root privileges. Pull Request resolved: https://github.com/pytorch/pytorch/pull/121128 Approved by: https://github.com/drisspg --- .devcontainer/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 97f56d61cba..e151576219a 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -30,5 +30,5 @@ RUN if [ -n "$CLANG_VERSION" ]; then \ # Install cuda if version is specified ARG CUDA_VERSION RUN if [ -n "$CUDA_VERSION" ]; then \ - conda install cuda -c "nvidia/label/cuda-${CUDA_VERSION}"; \ + conda install -y cuda -c "nvidia/label/cuda-${CUDA_VERSION}"; \ fi