logo
ghcr.io/wei-shaw/sub2api:0.2.14
linux/amd64 ghcr.io 雷蒙 贡献

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

15
浏览次数
266.42MB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.14
源镜像
ghcr.io/wei-shaw/sub2api:0.2.14
镜像ID
sha256:685072aafcfbd9e28704ed0e3732df1407be30bba7bb86234d7d9c85f45b60a3
镜像 TAG
0.2.14
镜像大小
266.42MB
平台架构
linux/amd64
镜像源
ghcr.io
CMD
/app/sub2api
启动入口
/app/docker-entrypoint.sh
工作目录
/app
OS/平台
linux/amd64
镜像创建
2026-10-07T02:01:40.092702105Z
同步时间
2026-10-08 18:50
浏览量
15 次
贡献者
avatar 雷蒙
🔌 开放端口 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
0363b8cdba8cec3e2ba4b2dbd49c4481143fa55d org.opencontainers.image.revision
https://github.com/Wei-Shaw/sub2api org.opencontainers.image.source
0.2.14 org.opencontainers.image.version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

sed -i 's#ghcr.io/wei-shaw/sub2api:0.2.14#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.14#' 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.2.14 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.14  ghcr.io/wei-shaw/sub2api:0.2.14'

Ansible快速分发-Containerd

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

镜像构建历史


# 2026-10-07 10:01:40  0.00B 设置默认要执行的命令
CMD ["/app/sub2api"]
                        
# 2026-10-07 10:01:40  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/app/docker-entrypoint.sh"]
                        
# 2026-10-07 10:01:40  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-10-07 10:01:40  0.00B 声明容器运行时监听的端口
EXPOSE [8080/tcp]
                        
# 2026-10-07 10:01:40  778.00B 执行命令并创建新的镜像层
RUN /bin/sh -c chmod +x /app/docker-entrypoint.sh # buildkit
                        
# 2026-10-07 10:01:40  778.00B 复制新文件或目录到容器中
COPY deploy/docker-entrypoint.sh /app/docker-entrypoint.sh # buildkit
                        
# 2026-10-07 10:01:40  123.22MB 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p /app/data && chown -R sub2api:sub2api /app # buildkit
                        
# 2026-10-07 10:01:39  213.44KB 复制新文件或目录到容器中
COPY --chown=sub2api:sub2api backend/resources /app/resources # buildkit
                        
# 2026-10-07 10:01:39  123.22MB 复制新文件或目录到容器中
COPY sub2api /app/sub2api # buildkit
                        
# 2026-10-07 10:01:39  0.00B 设置工作目录为/app
WORKDIR /app
                        
# 2026-10-07 10:01:39  3.06KB 执行命令并创建新的镜像层
RUN /bin/sh -c addgroup -g 1000 sub2api &&     adduser -u 1000 -G sub2api -s /bin/sh -D sub2api # buildkit
                        
# 2026-10-07 10:01:39  875.47KB 复制新文件或目录到容器中
COPY /usr/local/lib/libpq.so.5* /usr/local/lib/ # buildkit
                        
# 2026-10-07 10:01:39  1.05MB 复制新文件或目录到容器中
COPY /usr/local/bin/psql /usr/local/bin/psql # buildkit
                        
# 2026-10-07 10:01:39  543.04KB 复制新文件或目录到容器中
COPY /usr/local/bin/pg_dump /usr/local/bin/pg_dump # buildkit
                        
# 2026-10-07 10:01:39  9.49MB 执行命令并创建新的镜像层
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-10-07 10:01:39  0.00B 添加元数据标签
LABEL org.opencontainers.image.source=https://github.com/Wei-Shaw/sub2api
                        
# 2026-10-07 10:01:39  0.00B 添加元数据标签
LABEL description=Sub2API - AI API Gateway Platform
                        
# 2026-10-07 10:01:39  0.00B 添加元数据标签
LABEL maintainer=Wei-Shaw <github.com/Wei-Shaw>
                        
# 2026-09-18 04:38:22  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2026-09-18 04:38:22  7.80MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.21.8-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:685072aafcfbd9e28704ed0e3732df1407be30bba7bb86234d7d9c85f45b60a3",
    "RepoTags": [
        "weishaw/sub2api:0.2.14",
        "ghcr.io/wei-shaw/sub2api:0.2.14",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/weishaw/sub2api:0.2.14",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.14"
    ],
    "RepoDigests": [
        "weishaw/sub2api@sha256:7e6f05e3e37fbc42706704be9e2336338046f631b17e4c6d074e86194db8e393",
        "ghcr.io/wei-shaw/sub2api@sha256:7e6f05e3e37fbc42706704be9e2336338046f631b17e4c6d074e86194db8e393",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/weishaw/sub2api@sha256:5d86d1152a767752404d73efcc6d65a25024af3ecc11f4ec70ddf9e01210f49b",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api@sha256:5d86d1152a767752404d73efcc6d65a25024af3ecc11f4ec70ddf9e01210f49b"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-10-07T02:01:40.092702105Z",
    "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": "0363b8cdba8cec3e2ba4b2dbd49c4481143fa55d",
            "org.opencontainers.image.source": "https://github.com/Wei-Shaw/sub2api",
            "org.opencontainers.image.version": "0.2.14"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 266417827,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/c87a05c527cfd906bef4ba4eb39508ac3343c1234f1e2d056156b72a8496b0ea/diff:/var/lib/docker/overlay2/8603aac724fad0f9c7d227cb0ae95a33f2bde354b21909c9870228ef5610e211/diff:/var/lib/docker/overlay2/27a66a58a3e4567d34e774f562ddcefdf1776869b953054fc5028098647f4c44/diff:/var/lib/docker/overlay2/1c433f0a70ee0e3ad4d9080cb031cd6f725d429a05913e1f709f44ebcc87cb44/diff:/var/lib/docker/overlay2/b2d7403c7ebbd67c39e49c006276f1bc1805c5a644f35182b8ee7ad53d781f8f/diff:/var/lib/docker/overlay2/b347adaed3f1ec3263b9ed94af51059ce983b607c25e9391ff984884c924543b/diff:/var/lib/docker/overlay2/1f39fd51dff302d6ee9facdbb8420f2ae2d2fd9bff6d6095a83f98d9e74dad7d/diff:/var/lib/docker/overlay2/b1a207dd6a8ec66d28fa2e0e5f1b0caacb1cd3e28da7c001d50f20d6c3891302/diff:/var/lib/docker/overlay2/93dffaf646c8151b2dff5bc1486948d86c826c28b36d3e99978493729fce95bf/diff:/var/lib/docker/overlay2/39f48b2ea974b2b8bc16fe2f1cf68b4c490828e209f10a0384c41709f8e99bc0/diff:/var/lib/docker/overlay2/7083ae714747dfee5567641803497f63475051b876b53274b6e7d2f540c5195d/diff",
            "MergedDir": "/var/lib/docker/overlay2/c1156766b4f9d2cd1e74563a808b96ef4ce3df9427511cef8e3bd2a6b2e02181/merged",
            "UpperDir": "/var/lib/docker/overlay2/c1156766b4f9d2cd1e74563a808b96ef4ce3df9427511cef8e3bd2a6b2e02181/diff",
            "WorkDir": "/var/lib/docker/overlay2/c1156766b4f9d2cd1e74563a808b96ef4ce3df9427511cef8e3bd2a6b2e02181/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:1073f425247ed24670458429c13a67afbd36f83d2004dade046ddbd6519b1839",
            "sha256:3bc421900ef8e627515985f39d121b9bbde4e705abfe805a9b4b4283fad049b8",
            "sha256:eee68a7eee54dfb8bcb014ee0c5762525043cb1f8a1dbd7657b8beed6f8476e1",
            "sha256:f6e2fea481db09156aae242ad8495ec72cbe20eba95af803c80bf082fdaf4be8",
            "sha256:be0fc8ce614a6476dfa3d4c3882a14b73b47573a86694489d559f7c419962a43",
            "sha256:9f33e1d47cad2d569d1808a471741b42ada5e56e208f664b085d2600495b3271",
            "sha256:53da15018ad3ab58021d0ff292ced23d41cf884ecc7099e283335b6dc5d23f09",
            "sha256:9ea4284246025ffd14861569458595b0bf3e59a1c6282757b5beac516b9f65d1",
            "sha256:66283f843c890257ed8ec42f92a066b37968d367b1bc29e4ee7672df03d338f3",
            "sha256:3c0d0a6d4995f67fbd4a72a6307c78a0eafeecb5b8d20279462a9a096007dc85",
            "sha256:398e5b87f16ce070971802d2a1c5762f84f08869560922cd7d635af3c87750b6",
            "sha256:71e925305fd26d0552fc48be5e14b432cd38db51b8cafec1b12be752a193eeea"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-10-08T18:50:05.428070357+08:00"
    }
}

更多版本

ghcr.io/wei-shaw/sub2api:0.1.120

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

ghcr.io/wei-shaw/sub2api:0.1.121

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

ghcr.io/wei-shaw/sub2api:0.1.133

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

ghcr.io/wei-shaw/sub2api:0.1.135

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

ghcr.io/wei-shaw/sub2api:0.1.139

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

ghcr.io/wei-shaw/sub2api:0.1.142

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

ghcr.io/wei-shaw/sub2api:0.1.149

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

ghcr.io/wei-shaw/sub2api:0.1.150

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

ghcr.io/wei-shaw/sub2api:0.1.151

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

ghcr.io/wei-shaw/sub2api:0.1.152

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

ghcr.io/wei-shaw/sub2api:0.1.155

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

ghcr.io/wei-shaw/sub2api:0.1.156

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

ghcr.io/wei-shaw/sub2api:0.1.157

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

ghcr.io/wei-shaw/sub2api:0.1.158

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

ghcr.io/wei-shaw/sub2api:0.1.159

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

ghcr.io/wei-shaw/sub2api:0.1.160

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

ghcr.io/wei-shaw/sub2api:0.1.161

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

ghcr.io/wei-shaw/sub2api:0.1.162

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

ghcr.io/wei-shaw/sub2api:0.1.163

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

ghcr.io/wei-shaw/sub2api:0.1.164

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

ghcr.io/wei-shaw/sub2api:0.1.165

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

ghcr.io/wei-shaw/sub2api:0.1.166

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

ghcr.io/wei-shaw/sub2api:0.1.168

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

ghcr.io/wei-shaw/sub2api:0.1.169

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

ghcr.io/wei-shaw/sub2api:0.1.170

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

ghcr.io/wei-shaw/sub2api:0.1.171

linux/amd64 ghcr.io79.66MB2026-08-06 15:05
158

ghcr.io/wei-shaw/sub2api:0.1.173

linux/amd64 ghcr.io255.19MB2026-08-10 17:18
155

ghcr.io/wei-shaw/sub2api:0.1.175

linux/amd64 ghcr.io255.43MB2026-08-12 23:58
128

ghcr.io/wei-shaw/sub2api:0.1.176

linux/amd64 ghcr.io255.66MB2026-08-13 11:57
138

ghcr.io/wei-shaw/sub2api:0.1.177

linux/amd64 ghcr.io255.94MB2026-08-16 10:58
110

ghcr.io/wei-shaw/sub2api:0.1.178

linux/amd64 ghcr.io257.02MB2026-08-18 18:55
125

ghcr.io/wei-shaw/sub2api:0.1.179

linux/amd64 ghcr.io257.38MB2026-08-20 23:12
112

ghcr.io/wei-shaw/sub2api:0.1.180

linux/amd64 ghcr.io257.96MB2026-08-24 20:29
101

ghcr.io/wei-shaw/sub2api:0.1.181

linux/amd64 ghcr.io257.97MB2026-08-25 10:05
100

ghcr.io/wei-shaw/sub2api:0.1.182

linux/amd64 ghcr.io257.97MB2026-08-25 16:33
114

ghcr.io/wei-shaw/sub2api:0.1.183

linux/amd64 ghcr.io258.01MB2026-08-26 09:46
141

ghcr.io/wei-shaw/sub2api:0.1.184

linux/amd64 ghcr.io258.65MB2026-09-01 10:30
103

ghcr.io/wei-shaw/sub2api:0.1.185

linux/amd64 ghcr.io258.70MB2026-09-01 20:40
92

ghcr.io/wei-shaw/sub2api:0.1.94

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

ghcr.io/wei-shaw/sub2api:0.2.0

linux/amd64 ghcr.io258.92MB2026-09-04 11:05
146

ghcr.io/wei-shaw/sub2api:0.2.1

linux/amd64 ghcr.io259.38MB2026-09-06 09:37
121

ghcr.io/wei-shaw/sub2api:0.2.10

linux/amd64 ghcr.io265.66MB2026-09-29 17:27
60

ghcr.io/wei-shaw/sub2api:0.2.13

linux/amd64 ghcr.io266.40MB2026-10-04 14:10
43

ghcr.io/wei-shaw/sub2api:0.2.14

linux/amd64 ghcr.io266.42MB2026-10-08 18:50
14

ghcr.io/wei-shaw/sub2api:0.2.3

linux/amd64 ghcr.io259.73MB2026-09-08 16:10
107

ghcr.io/wei-shaw/sub2api:0.2.4

linux/amd64 ghcr.io263.58MB2026-09-09 15:49
115

ghcr.io/wei-shaw/sub2api:0.2.5

linux/amd64 ghcr.io264.22MB2026-09-15 18:56
83

ghcr.io/wei-shaw/sub2api:0.2.7

linux/amd64 ghcr.io264.66MB2026-09-20 09:03
90

ghcr.io/wei-shaw/sub2api:0.2.8

linux/amd64 ghcr.io265.47MB2026-09-23 17:45
93

ghcr.io/wei-shaw/sub2api:0.2.9

linux/amd64 ghcr.io265.53MB2026-09-28 11:25
66
检测到您正在使用广告拦截插件,本站为公益站点,依赖广告维持运转 🙏 查看如何关闭 ×