diff --git a/pytorch/Dockerfile b/pytorch/Dockerfile index 4480c251e..809da9c8b 100644 --- a/pytorch/Dockerfile +++ b/pytorch/Dockerfile @@ -204,8 +204,8 @@ WORKDIR /jupyter COPY jupyter-requirements.txt . RUN python -m pip install --no-cache-dir -r jupyter-requirements.txt -RUN if [ ! -d "$(which conda)" ]; then \ - echo "conda activate idp" >> ~/.bashrc; \ +RUN if eval "which conda >/dev/null )"; then \ + echo "conda activate idp" >> ~/.bashrc; \ fi COPY --chown=root notebooks/ipex-xpu.ipynb /jupyter/xpu.ipynb diff --git a/pytorch/README.md b/pytorch/README.md index c2d1449de..d94070cfc 100644 --- a/pytorch/README.md +++ b/pytorch/README.md @@ -53,10 +53,8 @@ The images below additionally include [Jupyter Notebook](https://jupyter.org/) s ```bash docker run -it --rm \ -p 8888:8888 \ - --net=host \ --device /dev/dri \ -v /dev/dri/by-path:/dev/dri/by-path \ - --ipc=host \ intel/intel-extension-for-pytorch:2.1.20-xpu-pip-jupyter ``` @@ -93,7 +91,6 @@ The images below additionally include [Jupyter Notebook](https://jupyter.org/) s ```bash docker run -it --rm \ -p 8888:8888 \ - --net=host \ -v $PWD/workspace:/workspace \ -w /workspace \ intel/intel-extension-for-pytorch:2.3.0-pip-jupyter