logo
ghcr.io/wei-shaw/sub2api:0.2.23
linux/amd64 ghcr.io Dong 贡献

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

26
浏览次数
274.91MB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.23
源镜像
ghcr.io/wei-shaw/sub2api:0.2.23
镜像ID
sha256:f8e86efe6697c558e0aa4505e24359469d4104f2870d598ad9016bf5d61f4438
镜像 TAG
0.2.23
镜像大小
274.91MB
平台架构
linux/amd64
镜像源
ghcr.io
CMD
/app/sub2api
启动入口
/app/docker-entrypoint.sh
工作目录
/app
OS/平台
linux/amd64
镜像创建
2026-11-18T03:50:18.589009785Z
同步时间
2026-11-18 14:48
浏览量
26 次
贡献者
avatar Dong
🔌 开放端口 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
5af9afb588c4b014b3df9db7d4073af1f8ae01b6 org.opencontainers.image.revision
https://github.com/Wei-Shaw/sub2api org.opencontainers.image.source
0.2.23 org.opencontainers.image.version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

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.23 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.23  ghcr.io/wei-shaw/sub2api:0.2.23'

镜像构建历史


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

镜像信息

{
    "Id": "sha256:f8e86efe6697c558e0aa4505e24359469d4104f2870d598ad9016bf5d61f4438",
    "RepoTags": [
        "ghcr.io/wei-shaw/sub2api:0.2.23",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.23"
    ],
    "RepoDigests": [
        "ghcr.io/wei-shaw/sub2api@sha256:149ddcb8a1c013d1b4d0f3fef86f19e7971d0853befc65d3dbe9996855c53f98",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api@sha256:c095facf7192f344a0b6350293b8ea7afb4be3ef0a63339db33f1977d7192dd5"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-11-18T03:50:18.589009785Z",
    "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": "5af9afb588c4b014b3df9db7d4073af1f8ae01b6",
            "org.opencontainers.image.source": "https://github.com/Wei-Shaw/sub2api",
            "org.opencontainers.image.version": "0.2.23"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 274910862,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/f5513fd755c9bda8c1f6f2172734040e7fdbfd39820e899868390f666bd81d7b/diff:/var/lib/docker/overlay2/5062317d4d4720aa690df838c0adcb201870e01d7ac481e222725d569d38881e/diff:/var/lib/docker/overlay2/c6f0437d1cab819de1de8ffde542b1fa4e17cb28cf9c879fa9d8fc13f3ca87f2/diff:/var/lib/docker/overlay2/8ea86ab262af3c15d9e57026d748e732ef6a5f159dcace2538067a97e92e8a01/diff:/var/lib/docker/overlay2/829670a868b84570e35d816d5111e605c66069fcba67115cfb4c66c36e227ef7/diff:/var/lib/docker/overlay2/d496c2d05d12efe4333dc056f9894f4d35e52a4a2c8b4d5dca48192cd5969ed1/diff:/var/lib/docker/overlay2/371a8c0d4535d2ea6022e9cdcca2fed273511b9aebdf32b6adb4dfc0605cf748/diff:/var/lib/docker/overlay2/85b4cd102cda56e3b93e2e3e5be5f24c0bd761e0787fbb8d5c80c0c43e94a658/diff:/var/lib/docker/overlay2/9fe1322f50fdd6ecc4f691f362ec7c601009db8e46ce141b77099e474d83f6c4/diff:/var/lib/docker/overlay2/cf805b22ddf75b2f17cc2c7152b4e49f1c7952ff5b3807422f57d3604bdf2a85/diff:/var/lib/docker/overlay2/fd65286774517f0d3200d5589c336ea3baf27614123849dbf6ffdafb9863c66d/diff",
            "MergedDir": "/var/lib/docker/overlay2/2c04b7f4c00ea089d3a05436114395f9073fe2cbe3af5e8e48e579446aa50c5c/merged",
            "UpperDir": "/var/lib/docker/overlay2/2c04b7f4c00ea089d3a05436114395f9073fe2cbe3af5e8e48e579446aa50c5c/diff",
            "WorkDir": "/var/lib/docker/overlay2/2c04b7f4c00ea089d3a05436114395f9073fe2cbe3af5e8e48e579446aa50c5c/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:42cc7504d9d5f918d6ca52d96706e7b602c8ffca5b80b1cad44e004e1c69fb70",
            "sha256:4bcb04a97f76edcc9485979476a5d00ea4102dd510e47cfb2a286e4971b8c628",
            "sha256:0a25ca630d53b6b4215b015d8d21f799ed847f784f21ce66d0dd4182f43db25d",
            "sha256:63092d2a5dea871748e0a74849b3333b3fa6e2b84b3ec7ffbf7f967104b0fa6a",
            "sha256:50d17648207e406400abbb31741bf48649132406717d3267b3f74cc51e91a6ba",
            "sha256:3d24180a141ac5b100898a191aea50065876cf4e60e70fad859c2580db48486b",
            "sha256:c6341d54f3e1610196f9de22dfb96c6273ab238239025c32e720b158ea69534f",
            "sha256:51ea4a77d8902cc0af329ac2099ed673a394345584a5df18f038860cade28a32",
            "sha256:d38bcdc496c1f5194b78369c126190e91f899b253648f6c2845351286e428f3d",
            "sha256:8449f23827902cafcdef581ab1ca749b83d0e675409c709d3517bec272e4c04c",
            "sha256:60c05afa3836545c9372bd31f5644016c50ec54835e2d58baf218d0e6b1249cf",
            "sha256:ef14affd7d3e326ab121833ca414e2ccec5b8057b088a9a396e8e2b09bcb3846"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-11-18T14:48:38.973668427+08:00"
    }
}

更多版本

ghcr.io/wei-shaw/sub2api:0.1.120

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

ghcr.io/wei-shaw/sub2api:0.1.121

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

ghcr.io/wei-shaw/sub2api:0.1.133

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

ghcr.io/wei-shaw/sub2api:0.1.135

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

ghcr.io/wei-shaw/sub2api:0.1.139

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

ghcr.io/wei-shaw/sub2api:0.1.142

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

ghcr.io/wei-shaw/sub2api:0.1.149

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

ghcr.io/wei-shaw/sub2api:0.1.150

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

ghcr.io/wei-shaw/sub2api:0.1.151

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

ghcr.io/wei-shaw/sub2api:0.1.152

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

ghcr.io/wei-shaw/sub2api:0.1.155

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

ghcr.io/wei-shaw/sub2api:0.1.156

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

ghcr.io/wei-shaw/sub2api:0.1.157

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

ghcr.io/wei-shaw/sub2api:0.1.158

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

ghcr.io/wei-shaw/sub2api:0.1.159

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

ghcr.io/wei-shaw/sub2api:0.1.160

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

ghcr.io/wei-shaw/sub2api:0.1.161

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

ghcr.io/wei-shaw/sub2api:0.1.162

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

ghcr.io/wei-shaw/sub2api:0.1.163

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

ghcr.io/wei-shaw/sub2api:0.1.164

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

ghcr.io/wei-shaw/sub2api:0.1.165

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

ghcr.io/wei-shaw/sub2api:0.1.166

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

ghcr.io/wei-shaw/sub2api:0.1.168

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

ghcr.io/wei-shaw/sub2api:0.1.169

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

ghcr.io/wei-shaw/sub2api:0.1.170

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

ghcr.io/wei-shaw/sub2api:0.1.171

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

ghcr.io/wei-shaw/sub2api:0.1.173

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

ghcr.io/wei-shaw/sub2api:0.1.175

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

ghcr.io/wei-shaw/sub2api:0.1.176

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

ghcr.io/wei-shaw/sub2api:0.1.177

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

ghcr.io/wei-shaw/sub2api:0.1.178

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

ghcr.io/wei-shaw/sub2api:0.1.179

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

ghcr.io/wei-shaw/sub2api:0.1.180

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

ghcr.io/wei-shaw/sub2api:0.1.181

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

ghcr.io/wei-shaw/sub2api:0.1.182

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

ghcr.io/wei-shaw/sub2api:0.1.183

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

ghcr.io/wei-shaw/sub2api:0.1.184

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

ghcr.io/wei-shaw/sub2api:0.1.185

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

ghcr.io/wei-shaw/sub2api:0.1.94

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

ghcr.io/wei-shaw/sub2api:0.2.0

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

ghcr.io/wei-shaw/sub2api:0.2.1

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

ghcr.io/wei-shaw/sub2api:0.2.10

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

ghcr.io/wei-shaw/sub2api:0.2.13

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

ghcr.io/wei-shaw/sub2api:0.2.14

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

ghcr.io/wei-shaw/sub2api:0.2.15

linux/amd64 ghcr.io266.96MB2026-10-10 18:31
168

ghcr.io/wei-shaw/sub2api:0.2.16

linux/amd64 ghcr.io267.58MB2026-10-15 13:42
159

ghcr.io/wei-shaw/sub2api:0.2.17

linux/amd64 ghcr.io267.83MB2026-10-16 15:13
196

ghcr.io/wei-shaw/sub2api:0.2.18

linux/amd64 ghcr.io267.99MB2026-10-24 17:48
121

ghcr.io/wei-shaw/sub2api:0.2.19

linux/amd64 ghcr.io268.92MB2026-10-31 14:56
107

ghcr.io/wei-shaw/sub2api:0.2.20

linux/amd64 ghcr.io273.61MB2026-11-09 10:26
70

ghcr.io/wei-shaw/sub2api:0.2.21

linux/amd64 ghcr.io273.89MB2026-11-14 00:44
52

ghcr.io/wei-shaw/sub2api:0.2.22

linux/amd64 ghcr.io274.44MB2026-11-18 09:26
29

ghcr.io/wei-shaw/sub2api:0.2.23

linux/amd64 ghcr.io274.91MB2026-11-18 14:48
25

ghcr.io/wei-shaw/sub2api:0.2.3

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

ghcr.io/wei-shaw/sub2api:0.2.4

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

ghcr.io/wei-shaw/sub2api:0.2.5

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

ghcr.io/wei-shaw/sub2api:0.2.7

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

ghcr.io/wei-shaw/sub2api:0.2.8

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

ghcr.io/wei-shaw/sub2api:0.2.9

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