测试了下启动没啥问题。
docker run --rm \
-e PIP_EXTRA_INDEX_URL="https://gitlab.com/api/v4/projects/65746188/packages/pypi/simple" \
-e UV_EXTRA_INDEX_URL="https://gitlab.com/api/v4/projects/65746188/packages/pypi/simple" \
-it ghcr.io/loong64/python:3.11-slim-trixie bash
apt-get update
apt-get install -y --no-install-recommends python3-pip git zip unzip wget curl htop libgl1 libglib2.0-0
mkdir -p /root/.config/Ultralytics/
cd /root/.config/Ultralytics/
curl -LO https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.ttf
curl -LO https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.Unicode.ttf
cd /opt
git clone https://github.com/ultralytics/ultralytics
cd /opt/ultralytics
curl -LO https://github.com/ultralytics/ultralytics/raw/refs/heads/main/pyproject.toml
sed -i'' -e 's/"opencv-python/"opencv-python-headless/' pyproject.toml
export PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 PIP_NO_CACHE_DIR=1 PIP_BREAK_SYSTEM_PACKAGES=1
pip install -U pip
pip install uv
uv pip install --system -e . --index-strategy unsafe-best-match
Python 3.11.13 (main, Aug 10 2025, 08:36:23) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ultralytics import YOLO
Creating new Ultralytics Settings v0.0.6 file ✅
View Ultralytics Settings with 'yolo settings' or at '/root/.config/Ultralytics/settings.json'
Update Settings with 'yolo settings key=value', i.e. 'yolo settings runs_dir=path/to/dir'. For help see https://docs.ultralytics.com/quickstart/