logo
ghcr.io/wei-shaw/sub2api:0.2.7
linux/amd64 ghcr.io 墨舟 贡献

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

18
浏览次数
264.66MB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.7
源镜像
ghcr.io/wei-shaw/sub2api:0.2.7
镜像ID
sha256:09dc3d22151440a3f9b94f60b0172cdb2618b449db3b2e2c70285f1d22eb5d91
镜像 TAG
0.2.7
镜像大小
264.66MB
平台架构
linux/amd64
镜像源
ghcr.io
CMD
/app/sub2api
启动入口
/app/docker-entrypoint.sh
工作目录
/app
OS/平台
linux/amd64
镜像创建
2026-09-19T04:27:23.680516471Z
同步时间
2026-09-20 09:03
浏览量
18 次
贡献者
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
aea725f2ea644d5592d0bbb1d63b607efa7e200a org.opencontainers.image.revision
https://github.com/Wei-Shaw/sub2api org.opencontainers.image.source
0.2.7 org.opencontainers.image.version
🛡️ 镜像安全扫描
alpine 3.21.8 Trivy 2026-09-20 09:03 查看完整报告
0
低危 LOW
5
中危 MEDIUM
4
高危 HIGH
0
严重 CRITICAL
受影响目标 (2)
ghcr.io/wei-shaw/sub2api:0.2.7 (alpine 3.21.8) alpine app/sub2api gobinary

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

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

镜像构建历史


# 2026-09-19 12:27:23  0.00B 设置默认要执行的命令
CMD ["/app/sub2api"]
                        
# 2026-09-19 12:27:23  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/app/docker-entrypoint.sh"]
                        
# 2026-09-19 12:27:23  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-09-19 12:27:23  0.00B 声明容器运行时监听的端口
EXPOSE [8080/tcp]
                        
# 2026-09-19 12:27:23  778.00B 执行命令并创建新的镜像层
RUN /bin/sh -c chmod +x /app/docker-entrypoint.sh # buildkit
                        
# 2026-09-19 12:27:23  778.00B 复制新文件或目录到容器中
COPY deploy/docker-entrypoint.sh /app/docker-entrypoint.sh # buildkit
                        
# 2026-09-19 12:27:23  122.35MB 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p /app/data && chown -R sub2api:sub2api /app # buildkit
                        
# 2026-09-19 12:27:23  205.03KB 复制新文件或目录到容器中
COPY --chown=sub2api:sub2api backend/resources /app/resources # buildkit
                        
# 2026-09-19 12:27:23  122.35MB 复制新文件或目录到容器中
COPY sub2api /app/sub2api # buildkit
                        
# 2026-09-19 12:27:23  0.00B 设置工作目录为/app
WORKDIR /app
                        
# 2026-09-19 12:27:23  3.06KB 执行命令并创建新的镜像层
RUN /bin/sh -c addgroup -g 1000 sub2api &&     adduser -u 1000 -G sub2api -s /bin/sh -D sub2api # buildkit
                        
# 2026-09-19 12:27:22  875.47KB 复制新文件或目录到容器中
COPY /usr/local/lib/libpq.so.5* /usr/local/lib/ # buildkit
                        
# 2026-09-19 12:27:22  1.05MB 复制新文件或目录到容器中
COPY /usr/local/bin/psql /usr/local/bin/psql # buildkit
                        
# 2026-09-19 12:27:22  543.04KB 复制新文件或目录到容器中
COPY /usr/local/bin/pg_dump /usr/local/bin/pg_dump # buildkit
                        
# 2026-09-19 12:27:21  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-09-19 12:27:21  0.00B 添加元数据标签
LABEL org.opencontainers.image.source=https://github.com/Wei-Shaw/sub2api
                        
# 2026-09-19 12:27:21  0.00B 添加元数据标签
LABEL description=Sub2API - AI API Gateway Platform
                        
# 2026-09-19 12:27:21  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:09dc3d22151440a3f9b94f60b0172cdb2618b449db3b2e2c70285f1d22eb5d91",
    "RepoTags": [
        "ghcr.io/wei-shaw/sub2api:0.2.7",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.7"
    ],
    "RepoDigests": [
        "ghcr.io/wei-shaw/sub2api@sha256:411d9ca53be0dded773f7418e570bbdc4834c2cf6ff4ecad4e5347f882b6e79b",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api@sha256:207790000346c53f08dc9478be2d8b3bd010bda6f0fd5715aa7173e6cda29ca6"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-09-19T04:27:23.680516471Z",
    "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": "aea725f2ea644d5592d0bbb1d63b607efa7e200a",
            "org.opencontainers.image.source": "https://github.com/Wei-Shaw/sub2api",
            "org.opencontainers.image.version": "0.2.7"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 264664815,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/5354a33faa9af642063302504c024978dc90b9e0c155a6c1cefeb1a13a7dc6ee/diff:/var/lib/docker/overlay2/37ea6eee337fca7c097e8b74b276ad6302c33e338d4211ad89f8e121e9b8716a/diff:/var/lib/docker/overlay2/56b0d6b53836d9bfd7488995521a238d212d0305a2388a25cbdfcd17a9ef9ead/diff:/var/lib/docker/overlay2/b91a4ced7d6c5a23c1e1e50d9a81bd7f02a850293dd0e8d110a3ce77d44d0da4/diff:/var/lib/docker/overlay2/aa0df4c83aa0c7ca651b0e3470129dccd44bf698c7fe00f0011180f5b6e4b885/diff:/var/lib/docker/overlay2/cd3e04f710e1155d1709d3d2f0e1a99dbd07ba70e91819222264b809fbe576d1/diff:/var/lib/docker/overlay2/a9e9cc6afb88f134f354cdc99a77c0a57dec7459a1aba89ca0516cf193e3ace6/diff:/var/lib/docker/overlay2/2b801788174002f03adb107c6e4bea4f905c8a136fa17dc7dd8473bf851a566c/diff:/var/lib/docker/overlay2/6ed2b057d4607ff23089cf360ada40583e6dd4d3396fa440dd9980d142d8f570/diff:/var/lib/docker/overlay2/e3357c8b0216e71fa947ef855a6a87578d49271e09227e261b3c24fdd8c83651/diff:/var/lib/docker/overlay2/cd404eb2ddcc89f57f45c700e7283217c7640807a6b4a91ded1b57517eae282f/diff",
            "MergedDir": "/var/lib/docker/overlay2/08f715d566e9cfc9a3ffdfc075347c4c50c57f972496db486feb56617fc0acd4/merged",
            "UpperDir": "/var/lib/docker/overlay2/08f715d566e9cfc9a3ffdfc075347c4c50c57f972496db486feb56617fc0acd4/diff",
            "WorkDir": "/var/lib/docker/overlay2/08f715d566e9cfc9a3ffdfc075347c4c50c57f972496db486feb56617fc0acd4/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:1073f425247ed24670458429c13a67afbd36f83d2004dade046ddbd6519b1839",
            "sha256:422670c39f815a60b6abedd6f6e9b485bf4e5f7a64f09bc26d215e0e6062f175",
            "sha256:3db168fef10d2baeb34555eaa5fcd4b783401b42a2e873cfdcddc9442a616f47",
            "sha256:d2776df0c6427c0c3f6925fc44aa81a94bd20ef42aa4bc4b428a33d4de27fb0b",
            "sha256:1d22154e123b69f429202ec4ee26800e657d5f94e6090fcbd98c8b85b2facc4e",
            "sha256:7bcea3e5037922a9601ea70df46209b2d35638f01788273f261115aac60f330e",
            "sha256:e1374eb426ac3628963563db97052c66527dd24460e5e28df2f6afbd3108e468",
            "sha256:83ed704a643e7e1dd527162b1b12461d7deeaad2d7c5bb91043d3039e011043b",
            "sha256:5f9277c2c25a78480199bd86966a23dcb6014594b4e65150e9f4798470b7f236",
            "sha256:c1952a8845ec587785a17f82aca9b4ed8a7183f24c741f3b104bf24ecac831c5",
            "sha256:1b53cd6361e722fae66e478839c8b7664312e00638c49a14da304384eac22d33",
            "sha256:481b3201159493015a739e382ea910c0ad7ea6df2632a00009ff44cd0451756c"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-09-20T09:03:35.589335284+08:00"
    }
}

更多版本

ghcr.io/wei-shaw/sub2api:0.1.120

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

ghcr.io/wei-shaw/sub2api:0.1.121

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

ghcr.io/wei-shaw/sub2api:0.1.133

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

ghcr.io/wei-shaw/sub2api:0.1.135

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

ghcr.io/wei-shaw/sub2api:0.1.139

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

ghcr.io/wei-shaw/sub2api:0.1.142

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

ghcr.io/wei-shaw/sub2api:0.1.149

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

ghcr.io/wei-shaw/sub2api:0.1.150

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

ghcr.io/wei-shaw/sub2api:0.1.151

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

ghcr.io/wei-shaw/sub2api:0.1.152

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

ghcr.io/wei-shaw/sub2api:0.1.155

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

ghcr.io/wei-shaw/sub2api:0.1.156

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

ghcr.io/wei-shaw/sub2api:0.1.157

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

ghcr.io/wei-shaw/sub2api:0.1.158

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

ghcr.io/wei-shaw/sub2api:0.1.159

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

ghcr.io/wei-shaw/sub2api:0.1.160

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

ghcr.io/wei-shaw/sub2api:0.1.161

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

ghcr.io/wei-shaw/sub2api:0.1.162

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

ghcr.io/wei-shaw/sub2api:0.1.163

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

ghcr.io/wei-shaw/sub2api:0.1.164

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

ghcr.io/wei-shaw/sub2api:0.1.165

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

ghcr.io/wei-shaw/sub2api:0.1.166

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

ghcr.io/wei-shaw/sub2api:0.1.168

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

ghcr.io/wei-shaw/sub2api:0.1.169

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

ghcr.io/wei-shaw/sub2api:0.1.170

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

ghcr.io/wei-shaw/sub2api:0.1.171

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

ghcr.io/wei-shaw/sub2api:0.1.173

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

ghcr.io/wei-shaw/sub2api:0.1.175

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

ghcr.io/wei-shaw/sub2api:0.1.176

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

ghcr.io/wei-shaw/sub2api:0.1.177

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

ghcr.io/wei-shaw/sub2api:0.1.178

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

ghcr.io/wei-shaw/sub2api:0.1.179

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

ghcr.io/wei-shaw/sub2api:0.1.180

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

ghcr.io/wei-shaw/sub2api:0.1.181

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

ghcr.io/wei-shaw/sub2api:0.1.182

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

ghcr.io/wei-shaw/sub2api:0.1.183

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

ghcr.io/wei-shaw/sub2api:0.1.184

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

ghcr.io/wei-shaw/sub2api:0.1.185

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

ghcr.io/wei-shaw/sub2api:0.1.94

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

ghcr.io/wei-shaw/sub2api:0.2.0

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

ghcr.io/wei-shaw/sub2api:0.2.1

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

ghcr.io/wei-shaw/sub2api:0.2.3

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

ghcr.io/wei-shaw/sub2api:0.2.4

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

ghcr.io/wei-shaw/sub2api:0.2.5

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

ghcr.io/wei-shaw/sub2api:0.2.7

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