From e40fe634b1a7aa33e278b1404ee02dea12277080 Mon Sep 17 00:00:00 2001 From: atalman Date: Fri, 3 Oct 2025 15:01:35 +0000 Subject: [PATCH] Pin conda version for Docker builds (#164575) Mitigates https://github.com/pytorch/pytorch/issues/164574 Remove unused CUDA_CHANNEL var - this was used before when we had pytorch install via conda. Please note: CUDA 13.0 failures are expected since the CI tries to build against prod and CUDA 13.0 is not available in prod yet. Pull Request resolved: https://github.com/pytorch/pytorch/pull/164575 Approved by: https://github.com/malfet, https://github.com/Camyll --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b8964bd860e..f73dfcc1af3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,11 +50,10 @@ RUN git submodule update --init --recursive FROM conda as conda-installs ARG PYTHON_VERSION=3.11 ARG CUDA_PATH=cu121 -ARG CUDA_CHANNEL=nvidia ARG INSTALL_CHANNEL=whl/nightly # Automatically set by buildx -RUN /opt/conda/bin/conda update -y -n base -c defaults conda -RUN /opt/conda/bin/conda install -y python=${PYTHON_VERSION} +# pinning version of conda here see: https://github.com/pytorch/pytorch/issues/164574 +RUN /opt/conda/bin/conda install -c "${INSTALL_CHANNEL}" -y python=${PYTHON_VERSION} conda=25.7.0 ARG TARGETPLATFORM