
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Starting with the RAPIDS v23.08 release, this docker repository is deprecated.
base type images are replaced by https://hub.docker.com/r/rapidsai/baseruntime type image are replaced by https://hub.docker.com/r/rapidsai/notebooksdevel type images are no longer supportedFor a complete list of changes, please see https://github.com/rapidsai/docker/issues/539.
Visit https://rapids.ai for more information.
The RAPIDS suite of software libraries gives you the *** to execute end-to-end data science and analytics pipelines entirely on GPUs. It relies on NVIDIA® CUDA® primitives for low-level compute optimization, but exposes GPU parallelism and high-bandwidth memory speed through user-friendly Python interfaces.
NOTE: Review our prerequisites section below to ensure your system meets the minimum requirements for RAPIDS.
Versions of libraries included in the 23.06 images:
cuDF https://github.com/rapidsai/cudf/tree/v23.06.00, cuML https://github.com/rapidsai/cuml/tree/v23.06.00, cuGraph https://github.com/rapidsai/cugraph/tree/v23.06.00, RMM https://github.com/rapidsai/RMM/tree/v23.06.00, RAFT https://github.com/rapidsai/raft/tree/v23.06.00, cuSpatial https://github.com/rapidsai/cuspatial/tree/v23.06.00, cuSignal https://github.com/rapidsai/cusignal/tree/v23.06.00, cuxfilter https://github.com/rapidsai/cuxfilter/tree/v23.06.00The RAPIDS images are based on https://hub.docker.com/r/nvidia/cuda, and are intended to be drop-in replacements for the corresponding CUDA images in order to make it easy to add RAPIDS libraries while maintaining support for existing CUDA applications.
RAPIDS images come in three types, distributed in two different repos:
The https://hub.docker.com/r/rapidsai/rapidsai-core/tags repo contains the following:
base - contains a RAPIDS environment ready for use.
runtime - extends the base image by adding a notebook server and example notebooks.
This repo (rapidsai/rapidsai-core-dev), contains the following:
devel - contains the full RAPIDS source tree, pre-built with all artifacts in place, and the compiler toolchain, the debugging tools, the headers and the static libraries for RAPIDS development.
The tag naming scheme for RAPIDS images incorporates key platform details into the tag as shown below:
23.06-cuda11.8-devel-ubuntu22.04-py3.10 ^ ^ ^ ^ ^ | | type | python version | | | | cuda version | | | RAPIDS version linux version
Preferred - Docker CE v19+ and nvidia-container-toolkit
bash$ docker pull rapidsai/rapidsai-core-dev:23.06-cuda11.8-devel-ubuntu22.04-py3.10 $ docker run --gpus all --rm -it -p 8888:8888 -p 8787:8787 -p 8786:8786 \ rapidsai/rapidsai-core-dev:23.06-cuda11.8-devel-ubuntu22.04-py3.10
Legacy - Docker CE v18 and nvidia-docker2
bash$ docker pull rapidsai/rapidsai-core-dev:23.06-cuda11.8-devel-ubuntu22.04-py3.10 $ docker run --runtime=nvidia --rm -it -p 8888:8888 -p 8787:8787 -p 8786:8786 \ rapidsai/rapidsai-core-dev:23.06-cuda11.8-devel-ubuntu22.04-py3.10
The following ports are used by the devel containers:
8888 - exposes a https://jupyterlab.readthedocs.io/en/stable/ notebook server8786 - exposes a https://docs.dask.org/en/latest/ scheduler8787 - exposes a Dask https://docs.dask.org/en/latest/setup/cli.html#diagnostic-web-serversThe following environment variables can be passed to the docker run commands:
DISABLE_JUPYTER - set to true to disable the default Jupyter server from startingJUPYTER_FG - set to true to start Jupyter server in foreground instead of backgroundEXTRA_APT_PACKAGES - (Ubuntu images only) used to install additional apt packages in the container. Use a space separated list of valuesAPT_TIMEOUT - (Ubuntu images only) how long (in seconds) the apt command should wait before exitingEXTRA_YUM_PACKAGES - (CentOS images only) used to install additional yum packages in the container. Use a space separated list of valuesYUM_TIMEOUT - (CentOS images only) how long (in seconds) the yum command should wait before exitingEXTRA_CONDA_PACKAGES - used to install additional conda packages in the container. Use a space separated list of valuesCONDA_TIMEOUT - how long (in seconds) the conda command should wait before exitingEXTRA_PIP_PACKAGES - used to install additional pip packages in the container. Use a space separated list of valuesPIP_TIMEOUT - how long (in seconds) the pip command should wait before exitingExample:
sh$ docker run \ --rm \ -it \ --gpus all \ -e EXTRA_APT_PACKAGES="vim nano" \ -e EXTRA_CONDA_PACKAGES="jq" \ -e EXTRA_PIP_PACKAGES="beautifulsoup4" \ -p 8888:8888 \ -p 8787:8787 \ -p 8786:8786 \ rapidsai/rapidsai-core-dev:23.06-cuda11.8-devel-ubuntu22.04-py3.10
Mounting files/folders to the locations specified below provide additional functionality for the images.
/opt/rapids/environment.yml - a YAML file that contains a list of dependencies that will be installed by conda. The file should look like:ymldependencies: - beautifulsoup4 - jq
Example:
sh$ docker run \ --rm \ -it \ --gpus all \ -v $(pwd)/environment.yml:/opt/rapids/environment.yml \ rapidsai/rapidsai-core-dev:23.06-cuda11.8-devel-ubuntu22.04-py3.10
Notebooks can be found in the following directories within the 23.06 container :
/rapids/notebooks/cugraph - cuGraph demo notebooks/rapids/notebooks/cuml - cuML demo notebooks/rapids/notebooks/cusignal - cuSignal demo notebooks/rapids/notebooks/cuxfilter - cuXfilter demo notebooks/rapids/notebooks/cuspatial - cuSpatial demo notebooks/rapids/notebooks/xgboost - XGBoost demo notebooksFor a full description of each notebook, see the https://github.com/rapidsai/notebooks/blob/branch-23.06/README.md in the notebooks repository.
All RAPIDS images use conda as their package manager, and all RAPIDS packages (including source-built) are available in the rapids conda environment. If you want to extend RAPIDS images (such as using FROM), then it is important to include source activate rapids at the start of all RUN commands in your Dockerfile. Without this, the docker build context will not have access to the RAPIDS libraries, as it uses the base environment by default. Examples of this can be found in our own Dockerfiles, which can be found in the https://github.com/rapidsai/docker on GitHub.
You are free to modify the above steps. For example, you can launch an interactive session with your own data:
Preferred - Docker CE v19+ and nvidia-container-toolkit
bash$ docker run --gpus all --rm -it -p 8888:8888 -p 8787:8787 -p 8786:8786 \ -v /path/to/host/data:/rapids/my_data \ rapidsai/rapidsai-core-dev:23.06-cuda11.8-devel-ubuntu22.04-py3.10
Legacy - Docker CE v18 and nvidia-docker2
bash$ docker run --runtime=nvidia --rm -it -p 8888:8888 -p 8787:8787 -p 8786:8786 \ -v /path/to/host/data:/rapids/my_data \ rapidsai/rapidsai-core-dev:23.06-cuda11.8-devel-ubuntu22.04-py3.10
This will map data from your host operating system to the container OS in the /rapids/my_data directory. You may need to modify the provided notebooks for the new data paths.
You can check the documentation for RAPIDS APIs inside the JupyterLab notebook using a ? command, like this:
[1] ?cudf.read_csv
This prints the function signature and its usage documentation. If this is not enough, you can see the full code for the function using ??:
[1] ??pygdf.read_csv
Check out the RAPIDS http://rapids.ai/start.html for more detailed information and a RAPIDS https://rapids.ai/assets/files/cheatsheet.pdf.
Check out the https://docs.rapids.ai/api and https://xgboost.readthedocs.io/en/latest/ API docs.
Learn how to setup a multi-node cuDF and XGBoost data preparation and distributed training environment by following the https://github.com/rapidsai/notebooks.
Please submit issues with the container to this GitHub repository: https://github.com/rapidsai/docker/issues/new
For issues with RAPIDS libraries like cuDF, cuML, RMM, or others file an issue in the related GitHub project.
Additional help can be found on https://stackoverflow.com/tags/rapids or https://groups.google.com/forum/#!forum/rapidsai.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务