From 619aabd23ab7b99a5b4416d83cc0584dfd2f6fea Mon Sep 17 00:00:00 2001 From: myhloli Date: Thu, 13 Feb 2025 18:04:15 +0800 Subject: [PATCH] docs(readme): update Docker run commands and environment setup --- README.md | 6 +++--- README_zh-CN.md | 6 +++--- docs/README_Ascend_NPU_Acceleration_zh_CN.md | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 71c0b6d7..0a6af685 100644 --- a/README.md +++ b/README.md @@ -244,8 +244,8 @@ Synced with dev branch updates: #### 1. Install magic-pdf ```bash -conda create -n MinerU python=3.10 -conda activate MinerU +conda create -n mineru python=3.10 +conda activate mineru pip install -U "magic-pdf[full]" --extra-index-url https://wheels.myhloli.com ``` @@ -305,7 +305,7 @@ If your device supports CUDA and meets the GPU requirements of the mainline envi ```bash wget https://github.com/opendatalab/MinerU/raw/master/docker/global/Dockerfile -O Dockerfile docker build -t mineru:latest . - docker run --rm -it --gpus=all mineru:latest /bin/bash -c "echo 'source /opt/mineru_venv/bin/activate' >> ~/.bashrc && exec bash" + docker run -it --name mineru --gpus=all mineru:latest /bin/bash -c "echo 'source /opt/mineru_venv/bin/activate' >> ~/.bashrc && exec bash" magic-pdf --help ``` diff --git a/README_zh-CN.md b/README_zh-CN.md index 3ceca892..ea255e4d 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -248,8 +248,8 @@ https://github.com/user-attachments/assets/4bea02c9-6d54-4cd6-97ed-dff14340982c > 最新版本国内镜像源同步可能会有延迟,请耐心等待 ```bash -conda create -n MinerU python=3.10 -conda activate MinerU +conda create -n mineru python=3.10 +conda activate mineru pip install -U "magic-pdf[full]" --extra-index-url https://wheels.myhloli.com -i https://mirrors.aliyun.com/pypi/simple ``` @@ -308,7 +308,7 @@ pip install -U "magic-pdf[full]" --extra-index-url https://wheels.myhloli.com -i ```bash wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/china/Dockerfile -O Dockerfile docker build -t mineru:latest . - docker run --rm -it --gpus=all mineru:latest /bin/bash -c "echo 'source /opt/mineru_venv/bin/activate' >> ~/.bashrc && exec bash" + docker run -it --name mineru --gpus=all mineru:latest /bin/bash -c "echo 'source /opt/mineru_venv/bin/activate' >> ~/.bashrc && exec bash" magic-pdf --help ``` ### 使用NPU diff --git a/docs/README_Ascend_NPU_Acceleration_zh_CN.md b/docs/README_Ascend_NPU_Acceleration_zh_CN.md index 62bd532f..b1da7a88 100644 --- a/docs/README_Ascend_NPU_Acceleration_zh_CN.md +++ b/docs/README_Ascend_NPU_Acceleration_zh_CN.md @@ -25,7 +25,7 @@ docker build -t mineru_npu:latest . ## 运行容器 ```bash -docker run --rm -it -u root --privileged=true \ +docker run -it -u root --name mineru-npu --privileged=true \ --ipc=host \ --network=host \ --device=/dev/davinci0 \