镜像构建历史
# 2026-07-07 00:09:07 0.00B 设置默认要执行的命令
CMD ["/usr/local/bin/entrypoint.sh"]
# 2026-07-07 00:09:07 0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/var/run/docker.sock /opt]
# 2026-07-07 00:09:07 0.00B 声明容器运行时监听的端口
EXPOSE [10086/tcp]
# 2026-07-07 00:09:07 0.00B 设置工作目录为/
WORKDIR /
# 2026-07-07 00:09:07 181.32MB 执行命令并创建新的镜像层
RUN |4 DEBIAN_FRONTEND=noninteractive INSTALL_MODE=stable PANELVER=v2.2.2 PANEL_EDITION=cn /bin/bash -o pipefail -c chmod +x /usr/local/bin/entrypoint.sh && chmod +x /app/install-v2.override.sh && if [ -z "$PANELVER" ]; then PANELVER=$(curl -s https://resource.fit2cloud.com/1panel/package/v2/${INSTALL_MODE}/latest); fi && ARCH=$(dpkg --print-architecture) && if [ "$ARCH" = "armhf" ]; then ARCH="armv7"; fi && if [ "$ARCH" = "ppc64el" ]; then ARCH="ppc64le"; fi && PKG_NAME="1panel-${PANELVER}-linux-${ARCH}.tar.gz" && PKG_URL="https://resource.fit2cloud.com/1panel/package/v2/${INSTALL_MODE}/${PANELVER}/release/${PKG_NAME}" && echo "Downloading ${PKG_URL}..." && curl -sSL -o package.tar.gz "$PKG_URL" && tar zxvf package.tar.gz --strip-components 1 && rm package.tar.gz && mv /app/1pctl.custom /app/1pctl && sed -i "s|ORIGINAL_VERSION=.*|ORIGINAL_VERSION=${PANELVER}|g" /app/1pctl && sed -i "s|^PANEL_EDITION=.*|PANEL_EDITION=${PANEL_EDITION}|g" /app/1pctl && chmod +x 1pctl && bash install-v2.override.sh && mkdir -p /opt/1panel/tmp /opt/1panel/db /opt/1panel/log && mkdir -p /usr/share/1panel-default && echo "Pre-generating database..." && (timeout 10s /usr/local/bin/1panel-core || true) && (timeout 5s /usr/local/bin/1panel-agent || true) && if [ -f /opt/1panel/db/core.db ] && [ -f /opt/1panel/db/agent.db ]; then echo "Database generated successfully." && mv /opt/1panel/* /usr/share/1panel-default/; rm -rf /opt/1panel/*; else echo "Error: Database generation failed. Core log:" && cat /opt/1panel/log/* || true && exit 1; fi && rm -rf /app/* # buildkit
# 2026-07-07 00:08:47 912.00B 复制新文件或目录到容器中
COPY ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf # buildkit
# 2026-07-07 00:08:47 8.63KB 复制新文件或目录到容器中
COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh # buildkit
# 2026-07-07 00:08:47 2.28KB 复制新文件或目录到容器中
COPY ./install-v2.override.sh /app/install-v2.override.sh # buildkit
# 2026-07-07 00:08:47 14.48KB 复制新文件或目录到容器中
COPY ./1pctl /app/1pctl.custom # buildkit
# 2026-07-07 00:08:47 0.00B 设置工作目录为/app
WORKDIR /app
# 2026-07-07 00:08:47 223.08MB 执行命令并创建新的镜像层
RUN |4 DEBIAN_FRONTEND=noninteractive INSTALL_MODE=stable PANELVER=v2.2.2 PANEL_EDITION=cn /bin/bash -o pipefail -c apt-get update && apt-get install -y --no-install-recommends curl wget tar unzip zip git sudo gnupg sqlite3 tzdata expect ca-certificates lsb-release && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /tmp/docker.gpg.asc && gpg --batch --show-keys --with-colons /tmp/docker.gpg.asc | awk -F: '$1 == "fpr" { print $10; exit }' | grep -qx "9DC858229FC7DD38854AE2D88D81803C0EBFCD88" && gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg /tmp/docker.gpg.asc && rm -f /tmp/docker.gpg.asc && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list && apt-get update && apt-get install -y --no-install-recommends docker-ce-cli docker-compose-plugin && printf '%s\n' '#!/bin/sh' 'exec docker compose "$@"' > /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose && ln -sf /usr/local/bin/docker-compose /usr/bin/docker-compose && apt-get install -y --no-install-recommends supervisor && rm -rf /var/lib/apt/lists/* # buildkit
# 2026-07-07 00:08:47 0.00B 添加元数据标签
LABEL org.opencontainers.image.version=v2.2.2 org.opencontainers.image.source=https://github.com/okxlin/docker-1panel org.opencontainers.image.description=1Panel V2 Cloud-Native Edition Docker Image org.opencontainers.image.title=1Panel V2 org.opencontainers.image.vendor=okxlin
# 2026-07-07 00:08:47 0.00B 设置环境变量 TZ
ENV TZ=Asia/Shanghai
# 2026-07-07 00:08:47 0.00B 定义构建参数
ARG PANEL_EDITION=cn
# 2026-07-07 00:08:47 0.00B 定义构建参数
ARG PANELVER=v2.2.2
# 2026-07-07 00:08:47 0.00B 定义构建参数
ARG INSTALL_MODE=stable
# 2026-07-07 00:08:47 0.00B 定义构建参数
ARG DEBIAN_FRONTEND=noninteractive
# 2026-07-07 00:08:47 0.00B
SHELL [/bin/bash -o pipefail -c]
# 2026-06-27 12:19:04 179.00B
umoci raw add-layer --image /home/buildd/rockcraft-ubuntu-d5c39e770efe31df4a04e5e058b71b06/images/ubuntu:26.04 /home/buildd/rockcraft-ubuntu-d5c39e770efe31df4a04e5e058b71b06/images/.temp_layer.control_data.8927.tar
# 2026-06-27 12:19:04 0.00B
umoci config --image /home/buildd/rockcraft-ubuntu-d5c39e770efe31df4a04e5e058b71b06/images/ubuntu:26.04 --clear=manifest.annotations --manifest.annotation org.opencontainers.image.version=26.04 --manifest.annotation org.opencontainers.image.title=ubuntu --manifest.annotation org.opencontainers.image.created=2026-06-27T04:19:04.617438+00:00 --manifest.annotation org.opencontainers.image.description=The Ubuntu container image maintained by Canonical
Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things.
It is the world's most popular operating system across public clouds and OpenStack clouds.
It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale.
Fast, secure and simple, Ubuntu powers millions of PCs worldwide.
# 2026-06-27 12:19:04 0.00B
umoci config --image /home/buildd/rockcraft-ubuntu-d5c39e770efe31df4a04e5e058b71b06/images/ubuntu:26.04 --clear=config.labels --config.label org.opencontainers.image.version=26.04 --config.label org.opencontainers.image.title=ubuntu --config.label org.opencontainers.image.created=2026-06-27T04:19:04.617438+00:00 --config.label org.opencontainers.image.description=The Ubuntu container image maintained by Canonical
Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things.
It is the world's most popular operating system across public clouds and OpenStack clouds.
It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale.
Fast, secure and simple, Ubuntu powers millions of PCs worldwide.
# 2026-06-27 12:19:04 0.00B
umoci config --image /home/buildd/rockcraft-ubuntu-d5c39e770efe31df4a04e5e058b71b06/images/ubuntu:26.04 --config.env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2026-06-27 12:19:04 0.00B
umoci config --image /home/buildd/rockcraft-ubuntu-d5c39e770efe31df4a04e5e058b71b06/images/ubuntu:26.04 --clear=config.cmd --config.cmd /bin/bash
# 2026-06-27 12:19:04 0.00B
umoci config --image /home/buildd/rockcraft-ubuntu-d5c39e770efe31df4a04e5e058b71b06/images/ubuntu:26.04 --clear=config.entrypoint --clear=config.cmd
# 2026-06-27 12:19:03 100.15MB
umoci raw add-layer --image /home/buildd/rockcraft-ubuntu-d5c39e770efe31df4a04e5e058b71b06/images/ubuntu:rockcraft-base /home/buildd/rockcraft-ubuntu-d5c39e770efe31df4a04e5e058b71b06/images/.temp_layer.8927.tar --tag 26.04
镜像信息
{
"Id": "sha256:1e651abe94d569870493eefe66ef5c0a5b8e593f17e347bfde1005ab414e73a0",
"RepoTags": [
"moelin/1panel:v2.2.2",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/moelin/1panel:v2.2.2"
],
"RepoDigests": [
"moelin/1panel@sha256:4d5060e10d8ff26b65aa36a933e78381af61984fbfb92e76c959f0071b7f058d",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/moelin/1panel@sha256:dfe065cf822bcb322fd9aa377b2405791a6ba9d5e155f2543bcf710bc3163e39"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2026-07-06T16:09:07.305260268Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"10086/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"TZ=Asia/Shanghai"
],
"Cmd": [
"/usr/local/bin/entrypoint.sh"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": {
"/opt": {},
"/var/run/docker.sock": {}
},
"WorkingDir": "/",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"org.opencontainers.image.created": "2026-06-27T04:19:04.617438+00:00",
"org.opencontainers.image.description": "1Panel V2 Cloud-Native Edition Docker Image",
"org.opencontainers.image.source": "https://github.com/okxlin/docker-1panel",
"org.opencontainers.image.title": "1Panel V2",
"org.opencontainers.image.vendor": "okxlin",
"org.opencontainers.image.version": "v2.2.2"
},
"Shell": [
"/bin/bash",
"-o",
"pipefail",
"-c"
]
},
"Architecture": "amd64",
"Os": "linux",
"Size": 504584227,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/e126d089fc3e8c5b6a078bddc40248068d91e65fb55d467261cb2b72a37b8aa0/diff:/var/lib/docker/overlay2/2f37fc7c548c4e7f71de26fda07d85b9b9744f4dc67456b4f81d73ca5865de51/diff:/var/lib/docker/overlay2/5060bbeb58b7cf04613f1a8f330e0b7d59e2e7e4a63f817158c9567948311932/diff:/var/lib/docker/overlay2/7e9a9e24c772ac8146e6f878c212f3ca00e9d9148b20aea9e64eb4fa0f2be0f5/diff:/var/lib/docker/overlay2/8f9c5717167fba01c2c6ba5559f033831a14c2fb7b4742a55ae52bb504627b8f/diff:/var/lib/docker/overlay2/04d09c09631283c556aaf64b7c46df8025c0966c746e9695e8272ea802558691/diff:/var/lib/docker/overlay2/305ad36ce8d0d431f50c7f274af340522457f7effb612b394f560c323809a4f4/diff:/var/lib/docker/overlay2/af6c04dfa65bf7826b11377bf7940cb1fa511add643ab52189d364712497face/diff",
"MergedDir": "/var/lib/docker/overlay2/bbdb88df0e880ae16ebdaf12e706cb49719f19a523242f7e6a935ee3fd51bcd2/merged",
"UpperDir": "/var/lib/docker/overlay2/bbdb88df0e880ae16ebdaf12e706cb49719f19a523242f7e6a935ee3fd51bcd2/diff",
"WorkDir": "/var/lib/docker/overlay2/bbdb88df0e880ae16ebdaf12e706cb49719f19a523242f7e6a935ee3fd51bcd2/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:bda804a4cb7af887d97ad0c3fdbcb7778643cfd0bf248da7d60e5ff904f67121",
"sha256:937c0a24da4428b79eb6e52831990722a18469164c841652bbea047426ba1649",
"sha256:d373a95149e0552a0ed1665ec95acdc2ef485fd6ee94c90a59ab4b7216014c4a",
"sha256:41ca2bf3ef53277c781e6b6a70236d49762974dec2bb16be56d5c3bd16c890a1",
"sha256:347d4371fececd6f595e11000c9e438d00f1d18571395163a44a25cd7b413aae",
"sha256:a70a5909ab8ff2fca9b8ba046aaec43d9d3a9cc53b741e57b02f06ca1f3089a4",
"sha256:d0d2d0aa7298602fd71f612b2292be9793a2fb4d1aef6ea3cfcb934ca6cea515",
"sha256:097f93bcdfe36cdb68d5c2bd1620a8963e0f5c722fc53cb1277432b315f70302",
"sha256:2a5f077c1e2979dd0e7ae07020d4aa95aa9010d5151837bf16e4c1fef286d49e"
]
},
"Metadata": {
"LastTagTime": "2026-10-14T12:29:25.917611028+08:00"
}
}