如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
This is the default docker image used as a default build environment in Bitbucket Pipelines.
If you don't specify an image, Bitbucket Pipelines will use the default one when running a build.
Version 5.x (Recommended) platform: ubuntu 24.04 (LTS) wget xvfb curl ssh zip jq tar parallel git: 2.49.0 node: 22.15.0 npm: 10.9.2 nvm: 0.40.3 python: 3.12.3 gcc: 13.2.0 ant: 1.10.14 docker-cli: 28.1.1 buildx: 0.23.0 docker-compose: 2.36.0
Version 4.x (Deprecated) platform: ubuntu 22.04 (LTS) wget xvfb curl ssh zip jq tar parallel git: 2.39.1 node: 18.20.6 npm: 9.5.1 nvm: 0.39.2 python: 3.10.6 gcc: 11.3.0 ant: 1.10.12
Version 3.x (Deprecated) platform: ubuntu 20.04 (LTS) wget xvfb curl ssh zip jq tar parallel git: 2.39.1 node: 14.17.5 npm: 6.14.14 nvm: 0.38.0 python: 3.8.10 gcc: 9.4.0 ant: 1.10.7
Version 2.x (Deprecated) platform: ubuntu 16.04 wget xvfb curl ssh git: 2.7.4 mercurial: 3.7.3 java: Open-JDK 1.8u151 maven: 3.3.9 node: 8.9.4 npm: 5.6.0 nvm: 0.33.8 python: 2.7.12 gcc: 5.4.0 ant: 1.9.6
Version 1.x / Latest (Deprecated) platform: ubuntu 14.04 packages available out-of-the-box: wget xvfb curl git: 1.9.1 java: 1.8u66 maven: 3.0.5 node: 4.2.1 npm: 2.14.7 nvm: 0.29.0 python: 2.7.6 gcc: 4.8.4
More details about the contents: [***]
The latest tag atlassian/default-image:latest is currently using version 1 in order to keep compatibility with existing Bitbucket Pipelines builds.
However, we strongly recommend that you select a specific version (5.x) in order to prevent breaking changes from impacting your setup. You can use a specific version by using a version number tag: atlassian/default-image:5. This will install the latest 5.x version that is available.
FROM docker:28.1.1-cli AS docker-cli FROM ubuntu:24.04 LABEL maintainer="Bitbucket Pipelines <***>" # Args ARG BUILD_DATE ARG REVISION ARG BUILD_VERSION ARG DEBIAN_FRONTEND=noninteractive # Labels LABEL \ org.opencontainers.image.authors="Bitbucket Pipelines <***>" \ org.opencontainers.image.created=$BUILD_DATE \ org.opencontainers.image.title="atlassian/default-image" \ org.opencontainers.image.description="Default image for Bitbucket Pipelines" \ org.opencontainers.image.url="[***]" \ org.opencontainers.image.revision=$REVISION \ org.opencontainers.image.vendor="Atlassian" \ org.opencontainers.image.version=$BUILD_VERSION # Install base dependencies RUN apt-get update \ && apt-get install -y \ software-properties-common \ && add-apt-repository ppa:git-core/ppa -y \ && apt-get install -y \ autoconf \ build-essential \ ca-certificates \ pkg-config \ wget \ xvfb \ curl \ git \ ant \ ssh-client \ unzip \ iputils-ping \ zip \ jq \ gettext-base \ tar \ parallel \ && rm -rf /var/lib/apt/lists/* SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Copy Docker CLI, Buildx plugin and docker-compose COPY --from=docker-cli /usr/local/bin/docker /usr/local/bin/docker COPY --from=docker-cli /usr/local/libexec/docker/cli-plugins/docker-buildx /usr/local/libexec/docker/cli-plugins/docker-buildx COPY --from=docker-cli /usr/local/bin/docker-compose /usr/local/bin/docker-compose # Install nvm with node and npm ENV NODE_VERSION=22.15.0 \ NVM_DIR=/root/.nvm \ NVM_VERSION=0.40.3 \ NVM_SHA256=2d8359a64a3cb07c02389ad88ceecd43f2fa469c06104f92f98df5b6f315275f RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v$NVM_VERSION/install.sh -o install_nvm.sh \ && echo "${NVM_SHA256} install_nvm.sh" | sha256sum -c - \ && bash install_nvm.sh \ && rm -rf install_nvm.sh \ && . $NVM_DIR/nvm.sh \ && nvm install $NODE_VERSION \ && nvm alias default $NODE_VERSION \ && nvm use default # Set node path ENV NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules # Default to UTF-8 file.encoding ENV LANG=C.UTF-8 \ LC_ALL=C.UTF-8 \ LANGUAGE=C.UTF-8 # Xvfb provide an in-memory X-session for tests that require a GUI ENV DISPLAY=:99 # Set the path. ENV PATH=$NVM_DIR:$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH # Create dirs and users RUN mkdir -p /opt/atlassian/bitbucketci/agent/build WORKDIR /opt/atlassian/bitbucketci/agent/build ENTRYPOINT ["/bin/bash"]
For product support go to support.atlassian.com.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务