docker.io/gpustack/gpustack:v0.6.2rc1-npu linux/amd64

docker.io/gpustack/gpustack:v0.6.2rc1-npu - 国内下载镜像源 浏览次数:42

这是一个名为 docker.io/gpustack/gpustack 的 Docker 容器镜像。 该镜像的具体描述信息需要参考其官方文档或仓库页面才能获得。 没有更多信息可以提供。

源镜像 docker.io/gpustack/gpustack:v0.6.2rc1-npu
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gpustack/gpustack:v0.6.2rc1-npu
镜像ID sha256:c28fc15184e106e8bf3e04bcd5a5114c692d711f8b114dc736d9aae136df05ad
镜像TAG v0.6.2rc1-npu
大小 17.77GB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD
启动入口 tini -- /usr/bin/bash -c source /etc/profile && exec gpustack start "$@" --
工作目录
OS/平台 linux/amd64
浏览量 42 次
贡献者
镜像创建 2025-06-06T04:14:21.607400839Z
同步时间 2025-06-06 15:49
更新时间 2025-06-27 01:12
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin DEBIAN_FRONTEND=noninteractive PYTHON_VERSION=3.11 LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 CANN_VERSION=8.1.rc1.beta1 CANN_CHIP=910b CANN_HOME=/usr/local/Ascend MINDIE_VERSION=2.0.rc1 VLLM_ASCEND_VERSION=0.7.3.post1
镜像标签
2025-06-06T04:10:04.802Z: org.opencontainers.image.created Manage GPU clusters for running AI models: org.opencontainers.image.description Apache-2.0: org.opencontainers.image.licenses ubuntu: org.opencontainers.image.ref.name 78d71882fa46297f4b16bd2976ef6c640824e0b6: org.opencontainers.image.revision https://github.com/gpustack/gpustack: org.opencontainers.image.source gpustack: org.opencontainers.image.title https://github.com/gpustack/gpustack: org.opencontainers.image.url v0.6.2rc1-npu: org.opencontainers.image.version

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gpustack/gpustack:v0.6.2rc1-npu
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gpustack/gpustack:v0.6.2rc1-npu  docker.io/gpustack/gpustack:v0.6.2rc1-npu

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gpustack/gpustack:v0.6.2rc1-npu
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gpustack/gpustack:v0.6.2rc1-npu  docker.io/gpustack/gpustack:v0.6.2rc1-npu

Shell快速替换命令

sed -i 's#gpustack/gpustack:v0.6.2rc1-npu#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gpustack/gpustack:v0.6.2rc1-npu#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gpustack/gpustack:v0.6.2rc1-npu && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gpustack/gpustack:v0.6.2rc1-npu  docker.io/gpustack/gpustack:v0.6.2rc1-npu'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gpustack/gpustack:v0.6.2rc1-npu && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gpustack/gpustack:v0.6.2rc1-npu  docker.io/gpustack/gpustack:v0.6.2rc1-npu'

镜像构建历史


# 2025-06-06 12:14:21  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["tini" "--" "/usr/bin/bash" "-c" "source /etc/profile && exec gpustack start \"$@\"" "--"]
                        
# 2025-06-06 12:14:21  4.31KB 执行命令并创建新的镜像层
RUN |9 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.11 CANN_VERSION=8.1.rc1.beta1 CANN_CHIP=910b MINDIE_VERSION=2.0.rc1 VLLM_VERSION=0.7.3 VLLM_ASCEND_VERSION=0.7.3.post1 /bin/bash -eo pipefail -c     # Export CANN driver lib
    EXPORT_DRIVER_LIB="export LD_LIBRARY_PATH=${CANN_HOME}/driver/lib64/common:${CANN_HOME}/driver/lib64/driver:\${LD_LIBRARY_PATH}"
    echo "${EXPORT_DRIVER_LIB}" >> /etc/profile
    echo "${EXPORT_DRIVER_LIB}" >> ~/.bashrc

    # Source CANN Toolkit environment
    SOURCE_TOOLKIT_ENV="source ${CANN_HOME}/ascend-toolkit/set_env.sh"
    echo "${SOURCE_TOOLKIT_ENV}" >> /etc/profile
    echo "${SOURCE_TOOLKIT_ENV}" >> ~/.bashrc

    # Source CANN NNAL environment
    SOURCE_NNAL_ENV="source ${CANN_HOME}/nnal/atb/set_env.sh"
    echo "${SOURCE_NNAL_ENV}" >> /etc/profile
    echo "${SOURCE_NNAL_ENV}" >> ~/.bashrc

    # Source ATB model environment
    SOURCE_ATB_MODEL_ENV="source ${CANN_HOME}/atb-models/set_env.sh"
    echo "${SOURCE_ATB_MODEL_ENV}" >> /etc/profile
    echo "${SOURCE_ATB_MODEL_ENV}" >> ~/.bashrc

    # Export Driver Tools
    EXPORT_DRIVER_TOOLS="export PATH=${CANN_HOME}/driver/tools:\${PATH}"
    echo "${EXPORT_DRIVER_TOOLS}" >> /etc/profile
    echo "${EXPORT_DRIVER_TOOLS}" >> ~/.bashrc

    # vLLM Ascend lib
    ARCH="$(uname -m)"
    if [[ "$ARCH" == "aarch64" && "$CANN_CHIP" == "910b" ]]; then
        EXPORT_PYTHON_LIB="export LD_LIBRARY_PATH=$(pipx environment --value PIPX_LOCAL_VENVS)/vllm-ascend/lib/python3.11/site-packages/torch/lib:\${LD_LIBRARY_PATH}"
        echo "${EXPORT_PYTHON_LIB}" >> /etc/profile
        echo "${EXPORT_PYTHON_LIB}" >> ~/.bashrc

        # vLLM Ascend Tuning
        echo 'export PYTORCH_NPU_ALLOC_CONF="expandable_segments:True"' >> /etc/profile
        echo 'export PYTORCH_NPU_ALLOC_CONF="expandable_segments:True"' >> ~/.bashrc
        echo 'export TASK_QUEUE_ENABLE=2' >> /etc/profile
        echo 'export TASK_QUEUE_ENABLE=2' >> ~/.bashrc
    fi

    # NB(thxCode): For specific MindIE version supporting,
    # we need to process environment setting up during GPUStack deployment.
 # buildkit
                        
# 2025-06-06 12:14:20  2.26GB 执行命令并创建新的镜像层
RUN |9 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.11 CANN_VERSION=8.1.rc1.beta1 CANN_CHIP=910b MINDIE_VERSION=2.0.rc1 VLLM_VERSION=0.7.3 VLLM_ASCEND_VERSION=0.7.3.post1 /bin/bash -eo pipefail -c     # Build
    cd /workspace/gpustack \
        && make build

    # Install,
    # vox-box relies on PyTorch 2.7, which is not compatible with MindIE.
    WHEEL_PACKAGE="$(ls /workspace/gpustack/dist/*.whl)"
    pip install --no-cache-dir --root-user-action ignore $WHEEL_PACKAGE

    # Download tools
    gpustack download-tools --device npu

    # Set up environment
    mkdir -p /var/lib/gpustack \
        && chmod -R 0755 /var/lib/gpustack

    # Review
    pip freeze \
        && python -m site

    # Cleanup
    rm -rf /workspace/gpustack/dist \
        && rm -rf /tmp/* \
        && pip cache purge
 # buildkit
                        
# 2025-06-05 22:37:34  1.05MB 执行命令并创建新的镜像层
RUN |9 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.11 CANN_VERSION=8.1.rc1.beta1 CANN_CHIP=910b MINDIE_VERSION=2.0.rc1 VLLM_VERSION=0.7.3 VLLM_ASCEND_VERSION=0.7.3.post1 /bin/bash -eo pipefail -c     # Install pipx
    pip install --no-cache-dir --root-user-action ignore pipx==1.7.1

    ARCH="$(uname -m)"
    VENV_PATH="$(pipx environment --value PIPX_LOCAL_VENVS)"
    URL_PREFIX="https://repo.oepkgs.net/ascend/pytorch/vllm/torch"

    if [[ "$ARCH" == "aarch64" && "$CANN_CHIP" == "910b" ]]; then
        wget https://gpustack-1303613262.cos.ap-guangzhou.myqcloud.com/gpustack/ascend/python-3.11.12-bisheng.tar.gz
        tar -zxvf python-3.11.12-bisheng.tar.gz -C ${VENV_PATH}
        mv ${VENV_PATH}/python-3.11.12-bisheng ${VENV_PATH}/vllm-ascend
        sed -i "1c#\!${VENV_PATH}/vllm-ascend/bin/python3.11" ${VENV_PATH}/vllm-ascend/bin/pip3
        sed -i "1c#\!${VENV_PATH}/vllm-ascend/bin/python3.11" ${VENV_PATH}/vllm-ascend/bin/pip3.11
        ln -sf ${VENV_PATH}/vllm-ascend/bin/python3.11 ${VENV_PATH}/vllm-ascend/bin/python
        ln -sf ${VENV_PATH}/vllm-ascend/bin/pip3.11 ${VENV_PATH}/vllm-ascend/bin/pip
        rm -f python-3.11.12-bisheng.tar.gz

        wget -P $(pipx environment --value PIPX_LOCAL_VENVS)/vllm-ascend/lib/python3.11/site-packages/torch/lib https://repo.oepkgs.net/ascend/pytorch/vllm/lib/libomp.so

        pipx runpip vllm-ascend install vllm==${VLLM_VERSION}
        pipx runpip vllm-ascend install vllm-ascend==${VLLM_ASCEND_VERSION}
        pipx runpip vllm-ascend install mindie_turbo==2.0rc1
        pipx runpip vllm-ascend install ${URL_PREFIX}/torch-2.5.1-cp311-cp311-linux_aarch64.whl --force-reinstall --no-deps
        pipx runpip vllm-ascend install ${URL_PREFIX}/torch_npu-2.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl --force-reinstall --no-deps

        ln -sf ${VENV_PATH}/vllm-ascend/bin/vllm /usr/local/bin/vllm

        # Install Ray
        rm -f /usr/local/bin/ray 
        pipx runpip vllm-ascend install ray[client]==2.43.0
        ln -sf ${VENV_PATH}/vllm-ascend/bin/ray /usr/local/bin/ray
    fi

    # Cleanup
    pip cache purge
 # buildkit
                        
# 2025-05-30 15:03:20  0.00B 设置环境变量 VLLM_ASCEND_VERSION
ENV VLLM_ASCEND_VERSION=0.7.3.post1
                        
# 2025-05-30 15:03:20  0.00B 定义构建参数
ARG VLLM_ASCEND_VERSION=0.7.3.post1
                        
# 2025-05-30 15:03:20  0.00B 定义构建参数
ARG VLLM_VERSION=0.7.3
                        
# 2025-05-30 15:03:20  1.43MB 执行命令并创建新的镜像层
RUN |7 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.11 CANN_VERSION=8.1.rc1.beta1 CANN_CHIP=910b MINDIE_VERSION=2.0.rc1 /bin/bash -eo pipefail -c     # Dependencies

    # Install
    apt-get install -y --no-install-recommends \
        libnuma-dev

    # Cleanup
    rm -rf /var/lib/apt/lists/*
 # buildkit
                        
# 2025-05-19 14:05:21  1.80GB 执行命令并创建新的镜像层
RUN |7 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.11 CANN_VERSION=8.1.rc1.beta1 CANN_CHIP=910b MINDIE_VERSION=2.0.rc1 /bin/bash -eo pipefail -c     # MindIE

    OS="$(uname -s | tr '[:upper:]' '[:lower:]')"
    ARCH="$(uname -m)"
    DOWNLOAD_VERSION="$(echo ${MINDIE_VERSION%\.beta1} | tr '[:lower:]' '[:upper:]')"
    URL_PREFIX="https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/MindIE/MindIE%20${DOWNLOAD_VERSION}"
    URL_SUFFIX="response-content-type=application/octet-stream"

    # Prepare environment
    source ${CANN_HOME}/ascend-toolkit/set_env.sh
    source ${CANN_HOME}/nnal/atb/set_env.sh

    # Install dependencies,
    # according to Ascend Extension Installation, have the mapping requirements for the CANN_VERSION,
    # please check https://www.hiascend.com/document/detail/zh/Pytorch/700/configandinstg/instg/insg_0004.html for details.
    if [ ${ARCH} == "x86_64" ]; then
        pip install --no-cache-dir --root-user-action ignore torch==2.1.0+cpu --index-url https://download.pytorch.org/whl/cpu
    else
        pip install --no-cache-dir --root-user-action ignore torch==2.1.0
    fi
    pip install --no-cache-dir --root-user-action ignore torch-npu==2.1.0.post12 torchvision==0.16.0
    cat <<EOT >/tmp/requirements.txt
av==14.3.0
absl-py==2.2.2
attrs==24.3.0
certifi==2024.8.30
cloudpickle==3.0.0
einops==0.8.1
easydict==1.13
frozenlist==1.6.0
gevent==24.2.1
geventhttpclient==2.3.1
greenlet==3.2.1
grpcio==1.71.0
icetk==0.0.4
idna==2.8
jsonlines==4.0.0
jsonschema==4.23.0
jsonschema-specifications==2025.4.1
Jinja2==3.1.6
loguru==0.7.2
matplotlib==3.9.2
ml_dtypes==0.5.0
multidict==6.4.3
nltk==3.9.1
numba==0.61.2
numpy==1.26.4
pandas==2.2.3
pillow==11.2.1
prettytable==3.11.0
pyarrow==19.0.1
pydantic==2.9.2
pydantic_core==2.23.4
python-rapidjson==1.20
requests==2.32.3
sacrebleu==2.4.3
tornado==6.4.2
transformers==4.46.3
tiktoken==0.7.0
typing_extensions==4.13.2
tzdata==2024.2
tqdm==4.67.1
thefuzz==0.22.1
urllib3==2.4.0
zope.event==5.0
zope.interface==7.0.3
EOT
    pip install --no-cache-dir --root-user-action ignore -r /tmp/requirements.txt

    # Install MindIE
    MINDIE_FILE="Ascend-mindie_${DOWNLOAD_VERSION}_${OS}-${ARCH}.run"
    MINDIE_PATH="/tmp/${MINDIE_FILE}"
    MINDIE_URL="${URL_PREFIX}/${MINDIE_FILE}?${URL_SUFFIX}"
    curl -H 'Referer: https://www.hiascend.com/' --retry 3 --retry-connrefused -fL -o "${MINDIE_PATH}" "${MINDIE_URL}"
    chmod a+x "${MINDIE_PATH}"
    printf "Y\n" | "${MINDIE_PATH}" --install --install-path="${CANN_HOME}"

    # Post process
    chmod +w "${CANN_HOME}/mindie/latest/mindie-service/conf"

    # Review
    pip freeze \
        && python -m site

    # Cleanup
    rm -f "${MINDIE_PATH}" \
        && rm -rf /var/log/mindie_log \
        && rm -rf ~/log \
        && rm -rf /tmp/* \
        && pip cache purge
 # buildkit
                        
# 2025-05-19 14:04:03  0.00B 设置环境变量 MINDIE_VERSION
ENV MINDIE_VERSION=2.0.rc1
                        
# 2025-05-19 14:04:03  0.00B 定义构建参数
ARG MINDIE_VERSION=2.0.rc1
                        
# 2025-05-19 14:04:03  7.68MB 执行命令并创建新的镜像层
RUN |6 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.11 CANN_VERSION=8.1.rc1.beta1 CANN_CHIP=910b /bin/bash -eo pipefail -c     # ATB Models

    # Install
    pip install --no-cache-dir --root-user-action ignore ${CANN_HOME}/atb-models/*.whl

    # Cleanup
    rm -f "${NNAL_PATH}" \
        && rm -rf /var/log/ascend_seclog \
        && rm -rf /var/log/cann_atb_log \
        && pip cache purge
 # buildkit
                        
# 2025-05-19 14:04:02  17.85MB 复制新文件或目录到容器中
COPY --chown=root:root /usr/local/Ascend/atb-models /usr/local/Ascend/atb-models # buildkit
                        
# 2025-05-19 14:04:02  983.08MB 执行命令并创建新的镜像层
RUN |6 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.11 CANN_VERSION=8.1.rc1.beta1 CANN_CHIP=910b /bin/bash -eo pipefail -c     # CANN NNAL

    OS="$(uname -s | tr '[:upper:]' '[:lower:]')"
    ARCH="$(uname -m)"
    DOWNLOAD_VERSION="$(echo ${CANN_VERSION%\.beta1} | tr '[:lower:]' '[:upper:]')"
    URL_PREFIX="https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%20${DOWNLOAD_VERSION}"
    URL_SUFFIX="response-content-type=application/octet-stream"

    # Prepare environment
    source ${CANN_HOME}/ascend-toolkit/set_env.sh

    # Install NNAL
    NNAL_FILE="Ascend-cann-nnal_${DOWNLOAD_VERSION}_${OS}-${ARCH}.run"
    NNAL_PATH="/tmp/${NNAL_FILE}"
    NNAL_URL="${URL_PREFIX}/${NNAL_FILE}?${URL_SUFFIX}"
    curl -H 'Referer: https://www.hiascend.com/' --retry 3 --retry-connrefused -fL -o "${NNAL_PATH}" "${NNAL_URL}"
    chmod a+x "${NNAL_PATH}"
    printf "Y\n" | "${NNAL_PATH}" --install --install-path="${CANN_HOME}"

    # Cleanup
    rm -f "${NNAL_PATH}" \
        && rm -rf /var/log/ascend_seclog \
        && rm -rf /var/log/cann_atb_log \
        && pip cache purge
 # buildkit
                        
# 2025-05-19 14:02:46  3.84GB 执行命令并创建新的镜像层
RUN |6 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.11 CANN_VERSION=8.1.rc1.beta1 CANN_CHIP=910b /bin/bash -eo pipefail -c     # CANN Kernels

    OS="$(uname -s | tr '[:upper:]' '[:lower:]')"
    ARCH="$(uname -m)"
    DOWNLOAD_VERSION="$(echo ${CANN_VERSION%\.beta1} | tr '[:lower:]' '[:upper:]')"
    URL_PREFIX="https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%20${DOWNLOAD_VERSION}"
    URL_SUFFIX="response-content-type=application/octet-stream"

    # Prepare environment
    source ${CANN_HOME}/ascend-toolkit/set_env.sh

    # Install kernels
    KERNELS_FILE="Ascend-cann-kernels-${CANN_CHIP}_${DOWNLOAD_VERSION}_${OS}-${ARCH}.run"
    if ! curl -H 'Referer: https://www.hiascend.com/' --retry 3 --retry-connrefused -fsSIL "${URL_PREFIX}/${KERNELS_FILE}?${URL_SUFFIX}" >/dev/null 2>&1; then
        # Fallback to generic kernels
        KERNELS_FILE="Ascend-cann-kernels-${CANN_CHIP}_${DOWNLOAD_VERSION}_${OS}.run"
    fi
    KERNELS_PATH="/tmp/${KERNELS_FILE}"
    KERNELS_URL="${URL_PREFIX}/${KERNELS_FILE}?${URL_SUFFIX}"
    curl -H 'Referer: https://www.hiascend.com/' --retry 3 --retry-connrefused -fL -o "${KERNELS_PATH}" "${KERNELS_URL}"
    chmod a+x "${KERNELS_PATH}"
    printf "Y\n" |"${KERNELS_PATH}" --install --install-for-all --install-path="${CANN_HOME}"

    # Cleanup
    rm -f "${KERNELS_PATH}" \
        && rm -rf /var/log/ascend \
        && rm -rf /var/log/ascend_seclog \
        && pip cache purge
 # buildkit
                        
# 2025-05-19 13:56:23  7.34GB 执行命令并创建新的镜像层
RUN |6 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.11 CANN_VERSION=8.1.rc1.beta1 CANN_CHIP=910b /bin/bash -eo pipefail -c     # CANN Toolkit

    OS="$(uname -s | tr '[:upper:]' '[:lower:]')"
    ARCH="$(uname -m)"
    DOWNLOAD_VERSION="$(echo ${CANN_VERSION%\.beta1} | tr '[:lower:]' '[:upper:]')"
    URL_PREFIX="https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%20${DOWNLOAD_VERSION}"
    URL_SUFFIX="response-content-type=application/octet-stream"

    # Install dependencies
    python3 -m pip install --no-cache-dir --root-user-action ignore --upgrade pip
    pip install --no-cache-dir --root-user-action ignore \
      attrs cython numpy==1.26.4 decorator sympy cffi pyyaml pathlib2 psutil protobuf scipy requests absl-py

    # Install toolkit
    TOOLKIT_FILE="Ascend-cann-toolkit_${DOWNLOAD_VERSION}_${OS}-${ARCH}.run"
    TOOLKIT_PATH="/tmp/${TOOLKIT_FILE}"
    TOOLKIT_URL="${URL_PREFIX}/${TOOLKIT_FILE}?${URL_SUFFIX}"
    curl -H 'Referer: https://www.hiascend.com/' --retry 3 --retry-connrefused -fL -o "${TOOLKIT_PATH}" "${TOOLKIT_URL}"
    chmod a+x "${TOOLKIT_PATH}"
    printf "Y\n" | "${TOOLKIT_PATH}" --install --install-for-all --install-path="${CANN_HOME}"

    # Cleanup
    rm -f "${TOOLKIT_PATH}" \
        && rm -rf /var/log/ascend \
        && rm -rf /var/log/ascend_seclog \
        && pip cache purge
 # buildkit
                        
# 2025-04-17 10:25:49  0.00B 设置环境变量 CANN_VERSION CANN_CHIP CANN_HOME
ENV CANN_VERSION=8.1.rc1.beta1 CANN_CHIP=910b CANN_HOME=/usr/local/Ascend
                        
# 2025-04-17 10:25:49  0.00B 定义构建参数
ARG CANN_CHIP=910b
                        
# 2025-04-17 10:25:49  0.00B 定义构建参数
ARG CANN_VERSION=8.1.rc1.beta1
                        
# 2025-04-17 10:25:49  409.68MB 执行命令并创建新的镜像层
RUN |4 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.11 /bin/bash -eo pipefail -c     # Dependencies

    # Install
    apt-get install -y --no-install-recommends \
        zlib1g zlib1g-dev libbz2-dev liblzma-dev libffi-dev openssl libssl-dev libsqlite3-dev \
        libblas-dev liblapack-dev libopenblas-dev libblas3 liblapack3 gfortran libhdf5-dev \
        libxml2 libxslt1-dev libgl1-mesa-glx libgmpxx4ldbl

    # Cleanup
    rm -rf /var/tmp/* \
        && rm -rf /tmp/* \
        && rm -rf /var/cache/apt
 # buildkit
                        
# 2025-04-17 10:25:21  147.73MB 执行命令并创建新的镜像层
RUN |4 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.11 /bin/bash -eo pipefail -c     # CMake/Make/SCCache

    # Install
    apt-get install -y --no-install-recommends \
        pkg-config make
    curl -sL "https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-linux-$(uname -m).tar.gz" | tar -zx -C /usr --strip-components 1
    curl -sL "https://github.com/mozilla/sccache/releases/download/v0.10.0/sccache-v0.10.0-$(uname -m)-unknown-linux-musl.tar.gz" | tar -zx -C /usr/bin --strip-components 1

    # Cleanup
    rm -rf /var/tmp/* \
        && rm -rf /tmp/* \
        && rm -rf /var/cache/apt
 # buildkit
                        
# 2025-04-17 10:25:12  227.53MB 执行命令并创建新的镜像层
RUN |4 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.11 /bin/bash -eo pipefail -c     # GCC

    # Install
    apt-get install -y --no-install-recommends \
        gcc-11 g++-11 gfortran-11 gfortran

    # Update alternatives
    if [ -f /etc/alternatives/gcov-dump ]; then update-alternatives --remove-all gcov-dump; fi; update-alternatives --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-11 10
    if [ -f /etc/alternatives/lto-dump ]; then update-alternatives --remove-all lto-dump; fi; update-alternatives --install /usr/bin/lto-dump lto-dump /usr/bin/lto-dump-11 10
    if [ -f /etc/alternatives/gcov ]; then update-alternatives --remove-all gcov; fi; update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-11 10
    if [ -f /etc/alternatives/gcc ]; then update-alternatives --remove-all gcc; fi; update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 10
    if [ -f /etc/alternatives/gcc-nm ]; then update-alternatives --remove-all gcc-nm; fi; update-alternatives --install /usr/bin/gcc-nm gcc-nm /usr/bin/gcc-nm-11 10
    if [ -f /etc/alternatives/cpp ]; then update-alternatives --remove-all cpp; fi; update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-11 10
    if [ -f /etc/alternatives/g++ ]; then update-alternatives --remove-all g++; fi; update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 10
    if [ -f /etc/alternatives/gcc-ar ]; then update-alternatives --remove-all gcc-ar; fi; update-alternatives --install /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-11 10
    if [ -f /etc/alternatives/gcov-tool ]; then update-alternatives --remove-all gcov-tool; fi; update-alternatives --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-11 10
    if [ -f /etc/alternatives/gcc-ranlib ]; then update-alternatives --remove-all gcc-ranlib; fi; update-alternatives --install /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-11 10
    if [ -f /etc/alternatives/gfortran ]; then update-alternatives --remove-all gfortran; fi; update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-11 10

    # Cleanup
    rm -rf /var/tmp/* \
        && rm -rf /tmp/* \
        && rm -rf /var/cache/apt
 # buildkit
                        
# 2025-04-17 10:24:48  0.00B 设置环境变量 LANG LANGUAGE LC_ALL
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
                        
# 2025-04-17 10:24:48  651.04MB 执行命令并创建新的镜像层
RUN |4 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.11 /bin/bash -eo pipefail -c     # Refresh
    apt-get update -y && apt-get install -y --no-install-recommends \
        software-properties-common apt-transport-https \
      && add-apt-repository -y ppa:ubuntu-toolchain-r/test \
      && add-apt-repository -y ppa:deadsnakes/ppa \
      && apt-get update -y

    # Install
    apt-get install -y --no-install-recommends \
        ca-certificates build-essential binutils bash openssl \
        curl wget aria2 \
        git git-lfs \
        unzip xz-utils \
        tzdata locales \
        iproute2 iputils-ping ifstat net-tools dnsutils pciutils ipmitool \
        procps sysstat htop \
        tini vim jq bc tree

    # Update python
    PYTHON="python${PYTHON_VERSION}"
    apt-get install -y --no-install-recommends \
        ${PYTHON} ${PYTHON}-dev ${PYTHON}-distutils ${PYTHON}-venv ${PYTHON}-lib2to3
    if [ -f /etc/alternatives/python ]; then update-alternatives --remove-all python; fi; update-alternatives --install /usr/bin/python python /usr/bin/${PYTHON} 10
    if [ -f /etc/alternatives/python3 ]; then update-alternatives --remove-all python3; fi; update-alternatives --install /usr/bin/python3 python3 /usr/bin/${PYTHON} 10
    curl -sS https://bootstrap.pypa.io/get-pip.py | ${PYTHON}

    # Update locale
    localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

    # Cleanup
    rm -rf /var/tmp/* \
        && rm -rf /tmp/* \
        && rm -rf /var/cache/apt \
        && pip cache purge
 # buildkit
                        
# 2025-04-17 10:24:48  0.00B 设置环境变量 DEBIAN_FRONTEND PYTHON_VERSION
ENV DEBIAN_FRONTEND=noninteractive PYTHON_VERSION=3.11
                        
# 2025-04-17 10:24:48  0.00B 定义构建参数
ARG PYTHON_VERSION=3.11
                        
# 2025-04-17 10:24:48  0.00B 定义构建参数
ARG TARGETARCH=amd64
                        
# 2025-04-17 10:24:48  0.00B 定义构建参数
ARG TARGETOS=linux
                        
# 2025-04-17 10:24:48  0.00B 定义构建参数
ARG TARGETPLATFORM=linux/amd64
                        
# 2025-04-17 10:24:48  0.00B 
SHELL [/bin/bash -eo pipefail -c]
                        
# 2025-04-08 18:42:48  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2025-04-08 18:42:48  72.81MB 
/bin/sh -c #(nop) ADD file:f9ee450324e6ff2c946bc9aae5cf7e35e240dbd387d8b9f5ee1ed5b8434b9894 in / 
                        
# 2025-04-08 18:42:46  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.version=20.04
                        
# 2025-04-08 18:42:46  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.ref.name=ubuntu
                        
# 2025-04-08 18:42:46  0.00B 
/bin/sh -c #(nop)  ARG LAUNCHPAD_BUILD_ARCH
                        
# 2025-04-08 18:42:46  0.00B 
/bin/sh -c #(nop)  ARG RELEASE
                        
                    

镜像信息

{
    "Id": "sha256:c28fc15184e106e8bf3e04bcd5a5114c692d711f8b114dc736d9aae136df05ad",
    "RepoTags": [
        "gpustack/gpustack:v0.6.2rc1-npu",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gpustack/gpustack:v0.6.2rc1-npu"
    ],
    "RepoDigests": [
        "gpustack/gpustack@sha256:fa5b506492c8a0759b9cbcd0bcb77fc7dcab80a8d59a65e957a88e3178432e77",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gpustack/gpustack@sha256:97012d12334278961e39c8779e8451d29e783fa84d1fa4ae60031354e6333a22"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-06-06T04:14:21.607400839Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "DEBIAN_FRONTEND=noninteractive",
            "PYTHON_VERSION=3.11",
            "LANG=en_US.UTF-8",
            "LANGUAGE=en_US:en",
            "LC_ALL=en_US.UTF-8",
            "CANN_VERSION=8.1.rc1.beta1",
            "CANN_CHIP=910b",
            "CANN_HOME=/usr/local/Ascend",
            "MINDIE_VERSION=2.0.rc1",
            "VLLM_ASCEND_VERSION=0.7.3.post1"
        ],
        "Cmd": null,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": [
            "tini",
            "--",
            "/usr/bin/bash",
            "-c",
            "source /etc/profile \u0026\u0026 exec gpustack start \"$@\"",
            "--"
        ],
        "OnBuild": null,
        "Labels": {
            "org.opencontainers.image.created": "2025-06-06T04:10:04.802Z",
            "org.opencontainers.image.description": "Manage GPU clusters for running AI models",
            "org.opencontainers.image.licenses": "Apache-2.0",
            "org.opencontainers.image.ref.name": "ubuntu",
            "org.opencontainers.image.revision": "78d71882fa46297f4b16bd2976ef6c640824e0b6",
            "org.opencontainers.image.source": "https://github.com/gpustack/gpustack",
            "org.opencontainers.image.title": "gpustack",
            "org.opencontainers.image.url": "https://github.com/gpustack/gpustack",
            "org.opencontainers.image.version": "v0.6.2rc1-npu"
        },
        "Shell": [
            "/bin/bash",
            "-eo",
            "pipefail",
            "-c"
        ]
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 17767227346,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/6d3dff05f7c7351c0d37a73408e82c3c5d35c843b4cc5204f12ec1be93b4acbe/diff:/var/lib/docker/overlay2/9fd4a056f554a1efc478d95c7fb3ab1b2f35010b219d11dd43a0b43fd8cc1a0c/diff:/var/lib/docker/overlay2/0f9a039fd0ea9e79461368fec3d3fe1f40368bd90486eef23fa8535fb26f5006/diff:/var/lib/docker/overlay2/cfcaaac08abd28ed06b430b1ee15a87e63ae857bfce3be75458ac50cfc51aeac/diff:/var/lib/docker/overlay2/2c97539af84f3bac774a54eb1db8c9ece91028897c31b07a395238d9a43d569c/diff:/var/lib/docker/overlay2/cb3ae3ac084b208f8efd3925abdd8c619559e21d52dc808434b970108fc1b78b/diff:/var/lib/docker/overlay2/c77c9e4202b314699ece04d491c022123dc0d7670bf7a0eb827ae4298144bb61/diff:/var/lib/docker/overlay2/3a471ecd500dd72f4f46662b7bed9e70500f60c0237b21cfe937687a95c48272/diff:/var/lib/docker/overlay2/0a02abb88d89be0a8adcedec86070d4335552baafe143e6efaef4ea046d781e2/diff:/var/lib/docker/overlay2/30c8271cb683416d2f0355cfebbb460d48c7f1e1d05262b43eedd7573a9681c7/diff:/var/lib/docker/overlay2/572b553db926503fad0462f924bca81155b235bdcf5ff3f28a85ee42fbd4076b/diff:/var/lib/docker/overlay2/8f0038ba96d38f31c09888c6892e621f534f2bcf962c7bf8faa03f2d73721b48/diff:/var/lib/docker/overlay2/b35e9d34a0b97216c54c660ae5d442ba2d38464d35741f0ba8334b886336fa6f/diff:/var/lib/docker/overlay2/c3102b9db5850440984f6be57a17532e2dfa5037043f1d88e212212a3e5dce8e/diff",
            "MergedDir": "/var/lib/docker/overlay2/8e3e01a6579a201a0f1a856ae1a747456f034c3237caf5a4d2d49e13fe63f8eb/merged",
            "UpperDir": "/var/lib/docker/overlay2/8e3e01a6579a201a0f1a856ae1a747456f034c3237caf5a4d2d49e13fe63f8eb/diff",
            "WorkDir": "/var/lib/docker/overlay2/8e3e01a6579a201a0f1a856ae1a747456f034c3237caf5a4d2d49e13fe63f8eb/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:470b66ea5123c93b0d5606e4213bf9e47d3d426b640d32472e4ac213186c4bb6",
            "sha256:482011b4db6062fc72eae0dbf77d0ce5116d6c45c4cfddaab83f69e8bbb1c87b",
            "sha256:3b0a18113ff73a2a388eece47e186b7f027c28eeae02686bc2c7a12120cd057a",
            "sha256:2148a63ab773bd1f11d93b7dc2a1b1218e2555b3544f32c6b39b2f821519caaf",
            "sha256:d5950490ab0f675b3ddec5f8c7e066823b52325cc17fa78e1c39e47f922e0bb7",
            "sha256:1f22d8a4a961affeefffc2803dcdc6d82d6207f833d9386ebf20efac32d73a05",
            "sha256:92829aafc20f8610ede7680858a9774764eb8d6a1bb3ee05c50d5787b33b533a",
            "sha256:2e69edabf7dd1408f12beb284a2da5c5f91521b27c2ab07c5d136ec7da94623c",
            "sha256:d93b2c1fe3f7a2742f4a46d5c5db9b19b289fd39df69cab5f8bd7623a046b2cb",
            "sha256:3b0c44d5b0b3eb5aada5d0bf2fb302d13544b5135536d63d609b1b5d5076291f",
            "sha256:e0d256fe4b79ce9c92065183a75964e8216b7136d04bedac62c0646dcf884484",
            "sha256:6f5b03b00ec47bd25aa84cff708dd4740ed2249528e5be956bed7013e07d78b1",
            "sha256:e02dd586fda61513796243ceabb93aa17287e78b04c519b631f8bd48e1a9e5d5",
            "sha256:9f4a8c0cb0490a13c6c8490e91a529615f36140d8927cb69e2a28a94c5bee19b",
            "sha256:cbefb8f5be596ba8e7b37d3a8c1136f04d082e107ec67041e1926e9b4370467d"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-06-06T15:35:41.251688203+08:00"
    }
}

更多版本

docker.io/gpustack/gpustack:latest

linux/amd64 docker.io13.39GB2024-12-17 02:56
349

docker.io/gpustack/gpustack:main

linux/arm64 docker.io6.16GB2025-01-10 17:09
224

docker.io/gpustack/gpustack:main-cpu

linux/arm64 docker.io3.07GB2025-01-10 17:15
160

docker.io/gpustack/gpustack:main

linux/amd64 docker.io13.47GB2025-01-11 01:06
154

docker.io/gpustack/gpustack:main-cpu

linux/amd64 docker.io8.64GB2025-01-11 01:23
190

docker.io/gpustack/gpustack:main-npu

linux/amd64 docker.io11.31GB2025-01-11 01:38
417

docker.io/gpustack/gpustack:main-npu

linux/arm64 docker.io11.16GB2025-01-11 01:55
133

docker.io/gpustack/gpustack:v0.5.0-npu

linux/arm64 docker.io10.77GB2025-02-09 00:59
275

docker.io/gpustack/gpustack:v0.5.0-npu

linux/amd64 docker.io10.94GB2025-02-09 01:29
215

docker.io/gpustack/gpustack:0.5.1rc1

linux/amd64 docker.io13.92GB2025-02-13 00:33
188

docker.io/gpustack/gpustack:latest-rocm

linux/amd64 docker.io51.40GB2025-03-14 02:47
185

docker.io/gpustack/gpustack:v0.5.1

linux/amd64 docker.io13.91GB2025-04-08 00:26
132

docker.io/gpustack/gpustack:0.6.0rc1

linux/amd64 docker.io15.64GB2025-04-13 03:11
148

docker.io/gpustack/gpustack:main-rocm

linux/amd64 docker.io52.53GB2025-04-19 01:08
106

docker.io/gpustack/gpustack:v0.6.0-npu

linux/arm64 docker.io15.47GB2025-04-27 15:06
187

docker.io/gpustack/gpustack:latest-npu

linux/arm64 docker.io15.47GB2025-04-28 09:54
128

docker.io/gpustack/gpustack:v0.6

linux/amd64 docker.io16.00GB2025-04-29 00:53
68

docker.io/gpustack/gpustack:v0.6.0

linux/amd64 docker.io16.00GB2025-04-30 13:22
112

docker.io/gpustack/gpustack:latest-cuda12.8

linux/amd64 docker.io16.41GB2025-05-05 00:48
75

docker.io/gpustack/gpustack:v0.6.1-npu

linux/arm64 docker.io17.16GB2025-05-20 00:35
147

docker.io/gpustack/gpustack:v0.6.1

linux/amd64 docker.io17.04GB2025-05-22 01:55
100

docker.io/gpustack/gpustack:v0.6.1-npu-310p

linux/arm64 docker.io17.73GB2025-06-05 02:53
69

docker.io/gpustack/gpustack:latest

linux/arm64 docker.io9.35GB2025-06-06 10:39
43

docker.io/gpustack/gpustack:latest-cpu

linux/arm64 docker.io5.09GB2025-06-06 11:16
34

docker.io/gpustack/gpustack:v0.6-dev

linux/arm64 docker.io8.64GB2025-06-06 15:24
24

docker.io/gpustack/gpustack:v0.6.2rc1-npu

linux/amd64 docker.io17.77GB2025-06-06 15:49
41

docker.io/gpustack/gpustack:v0.6.2rc1-npu

linux/arm64 docker.io19.68GB2025-06-07 00:27
83

docker.io/gpustack/gpustack:v0.6-dev-npu

linux/arm64 docker.io19.68GB2025-06-07 00:33
44

docker.io/gpustack/gpustack:v0.6.2-npu

linux/arm64 docker.io19.15GB2025-06-12 03:46
40

docker.io/gpustack/gpustack:v0.6.2-npu

linux/amd64 docker.io20.91GB2025-06-12 04:36
96

docker.io/gpustack/gpustack:latest-cpu

linux/amd64 docker.io10.52GB2025-06-14 04:13
26

docker.io/gpustack/gpustack:v0.6.2

linux/amd64 docker.io16.44GB2025-06-14 04:40
45

docker.io/gpustack/gpustack:v0.6.2-cpu

linux/arm64 docker.io4.94GB2025-06-14 09:47
28