logo
ghcr.io/wei-shaw/sub2api:0.1.171
linux/amd64 ghcr.io

ghcr.io/wei-shaw/sub2api是一个用于将代理订阅链接(如V2Ray、Clash等格式)转换为API接口的工具,方便通过API方式获取或处理订阅内容。

8
浏览次数
79.66MB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.1.171
源镜像
ghcr.io/wei-shaw/sub2api:0.1.171
镜像ID
sha256:0566f8150785ee7b0ef0e17e15c3cceab38d69f77dfb8120493b57eb746d29b5
镜像 TAG
0.1.171
镜像大小
79.66MB
平台架构
linux/amd64
镜像源
ghcr.io
CMD
/app/sub2api
启动入口
/app/docker-entrypoint.sh
工作目录
/app
OS/平台
linux/amd64
镜像创建
2026-08-04T13:40:27.917171725Z
同步时间
2026-08-06 15:05
浏览量
8 次
贡献者
🔌 开放端口 1
8080/tcp
⚙️ 环境变量 1
KeyValue
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 0
🏷️ 镜像标签 5
KeyValue
Sub2API - AI API Gateway Platform description
Wei-Shaw <github.com/Wei-Shaw> maintainer
f0e7a9c7a23a7d02fb159b62fa809621eb0475a6 org.opencontainers.image.revision
https://github.com/Wei-Shaw/sub2api org.opencontainers.image.source
0.1.171 org.opencontainers.image.version

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.1.171
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.1.171  ghcr.io/wei-shaw/sub2api:0.1.171

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.1.171
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.1.171  ghcr.io/wei-shaw/sub2api:0.1.171

Shell快速替换命令

sed -i 's#ghcr.io/wei-shaw/sub2api:0.1.171#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.1.171#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.1.171 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.1.171  ghcr.io/wei-shaw/sub2api:0.1.171'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.1.171 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.1.171  ghcr.io/wei-shaw/sub2api:0.1.171'

镜像构建历史


# 2026-08-04 21:40:27  0.00B 设置默认要执行的命令
CMD ["/app/sub2api"]
                        
# 2026-08-04 21:40:27  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/app/docker-entrypoint.sh"]
                        
# 2026-08-04 21:40:27  0.00B 指定检查容器健康状态的命令
HEALTHCHECK {Test:[CMD-SHELL curl -f http://localhost:${SERVER_PORT:-8080}/health || exit 1] Interval:30s Timeout:10s StartPeriod:10s StartInterval:0s Retries:3}
                        
# 2026-08-04 21:40:27  0.00B 声明容器运行时监听的端口
EXPOSE [8080/tcp]
                        
# 2026-08-04 21:40:27  12.29KB 执行命令并创建新的镜像层
RUN /bin/sh -c chmod +x /app/docker-entrypoint.sh # buildkit
                        
# 2026-08-04 21:40:27  12.29KB 复制新文件或目录到容器中
COPY deploy/docker-entrypoint.sh /app/docker-entrypoint.sh # buildkit
                        
# 2026-08-04 21:40:27  116.18MB 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p /app/data && chown -R sub2api:sub2api /app # buildkit
                        
# 2026-08-04 21:40:27  221.18KB 复制新文件或目录到容器中
COPY --chown=sub2api:sub2api backend/resources /app/resources # buildkit
                        
# 2026-08-04 21:40:27  116.17MB 复制新文件或目录到容器中
COPY sub2api /app/sub2api # buildkit
                        
# 2026-08-04 21:40:27  8.19KB 设置工作目录为/app
WORKDIR /app
                        
# 2026-08-04 21:40:27  40.96KB 执行命令并创建新的镜像层
RUN /bin/sh -c addgroup -g 1000 sub2api &&     adduser -u 1000 -G sub2api -s /bin/sh -D sub2api # buildkit
                        
# 2026-08-04 21:40:27  892.93KB 复制新文件或目录到容器中
COPY /usr/local/lib/libpq.so.5* /usr/local/lib/ # buildkit
                        
# 2026-08-04 21:40:27  1.07MB 复制新文件或目录到容器中
COPY /usr/local/bin/psql /usr/local/bin/psql # buildkit
                        
# 2026-08-04 21:40:27  561.15KB 复制新文件或目录到容器中
COPY /usr/local/bin/pg_dump /usr/local/bin/pg_dump # buildkit
                        
# 2026-08-04 21:40:26  11.83MB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache     ca-certificates     tzdata     curl     su-exec     libpq     zstd-libs     lz4-libs     krb5-libs     libldap     libedit     && rm -rf /var/cache/apk/* # buildkit
                        
# 2026-08-04 21:40:26  0.00B 添加元数据标签
LABEL org.opencontainers.image.source=https://github.com/Wei-Shaw/sub2api
                        
# 2026-08-04 21:40:26  0.00B 添加元数据标签
LABEL description=Sub2API - AI API Gateway Platform
                        
# 2026-08-04 21:40:26  0.00B 添加元数据标签
LABEL maintainer=Wei-Shaw <github.com/Wei-Shaw>
                        
# 2026-04-17 07:53:15  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2026-04-17 07:53:15  8.50MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.21.7-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:0566f8150785ee7b0ef0e17e15c3cceab38d69f77dfb8120493b57eb746d29b5",
    "RepoTags": [
        "ghcr.io/wei-shaw/sub2api:0.1.171",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.1.171",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.1.171-linuxarm64"
    ],
    "RepoDigests": [
        "ghcr.io/wei-shaw/sub2api@sha256:0566f8150785ee7b0ef0e17e15c3cceab38d69f77dfb8120493b57eb746d29b5",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api@sha256:0566f8150785ee7b0ef0e17e15c3cceab38d69f77dfb8120493b57eb746d29b5"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-08-04T13:40:27.917171725Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "8080/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        ],
        "Cmd": [
            "/app/sub2api"
        ],
        "Healthcheck": {
            "Test": [
                "CMD-SHELL",
                "curl -f http://localhost:${SERVER_PORT:-8080}/health || exit 1"
            ],
            "Interval": 30000000000,
            "Timeout": 10000000000,
            "StartPeriod": 10000000000,
            "Retries": 3
        },
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/app",
        "Entrypoint": [
            "/app/docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "description": "Sub2API - AI API Gateway Platform",
            "maintainer": "Wei-Shaw \u003cgithub.com/Wei-Shaw\u003e",
            "org.opencontainers.image.revision": "f0e7a9c7a23a7d02fb159b62fa809621eb0475a6",
            "org.opencontainers.image.source": "https://github.com/Wei-Shaw/sub2api",
            "org.opencontainers.image.version": "0.1.171"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 79664085,
    "GraphDriver": {
        "Data": null,
        "Name": "overlayfs"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:7211d01aba8fa2e9eb71ad34395cd313df5fc51a6b69b92d2dfad32cc37759cb",
            "sha256:11fa7258b300cd10a4b608f175caeaa62d2c2d1aa17b029bdd4ed6eb234604f8",
            "sha256:d7d0d4fa56b29243556917ec07477eb4e3f05eb20c965695a804ef9ace09b72a",
            "sha256:c0ccfbfdd1d0cc318a2aaf1681aa49a3eb7afebac81f1714ac2170a2e4886ae6",
            "sha256:fc7aac5dd688a77efd87710f664308ecc361575d43d340255236f9eb607fc72e",
            "sha256:abc76669c3e1a5bac59cc771ef05148ddfe486f20e1025545c64c7dd1653eb17",
            "sha256:3c433919649bb4f407e481ea359260401c3fd037c0574d7dda7c1faad46a9897",
            "sha256:9cdbaf28ce96e69227d51db5ce8fe0740c51ecb1a3b299d33256d51d92b3d368",
            "sha256:60c37677a606438bfd989912e2b53ecfa55876dfdb1521b4b6aca1861c700938",
            "sha256:3b865aacf6fb7ed7481019e6a8e0867ae3b2d7e0fc5faab09216c5e93358e06c",
            "sha256:ec7294793b593a74acd9b58d9ae4d1ca0ff267faa6e7912db4e16931a94a130c",
            "sha256:3144895e5e28382db2927f3d3b77581445a368c081ef9d7d0ca88f5deb4aeee9"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-08-06T07:01:48.262307675Z"
    }
}

更多版本

ghcr.io/wei-shaw/sub2api:0.1.94

linux/amd64 ghcr.io150.63MB2026-03-09 19:24
469

ghcr.io/wei-shaw/sub2api:0.1.120

linux/amd64 ghcr.io192.21MB2026-04-30 09:50
410

ghcr.io/wei-shaw/sub2api:0.1.121

linux/amd64 ghcr.io192.28MB2026-05-02 10:32
243

ghcr.io/wei-shaw/sub2api:0.1.133

linux/amd64 ghcr.io199.43MB2026-05-29 17:27
278

ghcr.io/wei-shaw/sub2api:0.1.135

linux/amd64 ghcr.io200.66MB2026-06-09 09:22
225

ghcr.io/wei-shaw/sub2api:0.1.139

linux/amd64 ghcr.io201.98MB2026-06-27 23:14
135

ghcr.io/wei-shaw/sub2api:0.1.142

linux/amd64 ghcr.io202.80MB2026-07-03 02:56
110

ghcr.io/wei-shaw/sub2api:0.1.149

linux/amd64 ghcr.io234.41MB2026-07-10 08:27
93

ghcr.io/wei-shaw/sub2api:0.1.150

linux/amd64 ghcr.io234.57MB2026-07-10 14:39
100

ghcr.io/wei-shaw/sub2api:0.1.151

linux/amd64 ghcr.io234.60MB2026-07-11 08:40
88

ghcr.io/wei-shaw/sub2api:0.1.152

linux/amd64 ghcr.io234.97MB2026-07-13 11:48
131

ghcr.io/wei-shaw/sub2api:0.1.155

linux/amd64 ghcr.io236.10MB2026-07-14 16:05
67

ghcr.io/wei-shaw/sub2api:0.1.156

linux/amd64 ghcr.io237.33MB2026-07-15 17:21
82

ghcr.io/wei-shaw/sub2api:0.1.157

linux/amd64 ghcr.io238.48MB2026-07-16 17:46
56

ghcr.io/wei-shaw/sub2api:0.1.158

linux/amd64 ghcr.io238.64MB2026-07-16 21:04
104

ghcr.io/wei-shaw/sub2api:0.1.159

linux/amd64 ghcr.io238.64MB2026-07-17 15:53
56

ghcr.io/wei-shaw/sub2api:0.1.160

linux/amd64 ghcr.io239.95MB2026-07-17 17:48
91

ghcr.io/wei-shaw/sub2api:0.1.161

linux/amd64 ghcr.io240.63MB2026-07-19 20:10
76

ghcr.io/wei-shaw/sub2api:0.1.162

linux/amd64 ghcr.io240.68MB2026-07-20 19:16
77

ghcr.io/wei-shaw/sub2api:0.1.163

linux/amd64 ghcr.io241.09MB2026-07-22 21:57
66

ghcr.io/wei-shaw/sub2api:0.1.164

linux/amd64 ghcr.io242.95MB2026-07-23 22:38
64

ghcr.io/wei-shaw/sub2api:0.1.165

linux/amd64 ghcr.io243.31MB2026-07-26 15:52
51

ghcr.io/wei-shaw/sub2api:0.1.166

linux/amd64 ghcr.io243.75MB2026-07-27 21:28
50

ghcr.io/wei-shaw/sub2api:0.1.168

linux/amd64 ghcr.io246.70MB2026-07-29 17:24
59

ghcr.io/wei-shaw/sub2api:0.1.169

linux/amd64 ghcr.io246.98MB2026-07-31 17:44
61

ghcr.io/wei-shaw/sub2api:0.1.170

linux/amd64 ghcr.io247.50MB2026-08-02 19:34
37

ghcr.io/wei-shaw/sub2api:0.1.171

linux/amd64 ghcr.io79.66MB2026-08-06 15:05
7
检测到您正在使用广告拦截插件,本站为公益站点,依赖广告维持运转 🙏 查看如何关闭 ×