logo
ghcr.io/wei-shaw/sub2api:0.2.18
linux/amd64 ghcr.io sunny 贡献

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

9
浏览次数
267.99MB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.18
源镜像
ghcr.io/wei-shaw/sub2api:0.2.18
镜像ID
sha256:294cdd808c35b7762cff7262ca04ba5917386e1ab8f5176b46a532d00db600d0
镜像 TAG
0.2.18
镜像大小
267.99MB
平台架构
linux/amd64
镜像源
ghcr.io
CMD
/app/sub2api
启动入口
/app/docker-entrypoint.sh
工作目录
/app
OS/平台
linux/amd64
镜像创建
2026-10-23T07:43:06.865645705Z
同步时间
2026-10-24 17:48
浏览量
9 次
贡献者
avatar sunny
🔌 开放端口 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
ac1b8f1271be0d674fa6f074403c1410f30a3a81 org.opencontainers.image.revision
https://github.com/Wei-Shaw/sub2api org.opencontainers.image.source
0.2.18 org.opencontainers.image.version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

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

镜像构建历史


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

镜像信息

{
    "Id": "sha256:294cdd808c35b7762cff7262ca04ba5917386e1ab8f5176b46a532d00db600d0",
    "RepoTags": [
        "ghcr.io/wei-shaw/sub2api:0.2.18",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.18"
    ],
    "RepoDigests": [
        "ghcr.io/wei-shaw/sub2api@sha256:468a0b0e541e4becc05f1cf57826159235ea27a49a09f3dc2da6a43fcc05a22d",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api@sha256:e93d991ef1f1149c92d56bf675af642e09e2e68a035bbfb22ec6d77d16e59b40"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-10-23T07:43:06.865645705Z",
    "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": "ac1b8f1271be0d674fa6f074403c1410f30a3a81",
            "org.opencontainers.image.source": "https://github.com/Wei-Shaw/sub2api",
            "org.opencontainers.image.version": "0.2.18"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 267992604,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/b4937b744ea0551525f07b14009f3ec21ac13278c1f2eb2fa06611e778b978b2/diff:/var/lib/docker/overlay2/e6cadc0bb6819ccd1173349ef5f78e9df34a866fbb0e9e18b8e1b42c9fc71895/diff:/var/lib/docker/overlay2/bc3418726fff9d367c553e33dd2a35e1913117708c8106e354d4171b8589392f/diff:/var/lib/docker/overlay2/ad46c26641ecb67540ff21e1ccf955ea3de26301b63f0b103078fd347ea21a28/diff:/var/lib/docker/overlay2/1c53b658fed24884a9dc40e67e4f64677fa55e66eed71f0a092f56f7c1c3f946/diff:/var/lib/docker/overlay2/e12d7c3a774165cd293f94011066075dd7ee931591f6f8d2ee8a17557fe0702d/diff:/var/lib/docker/overlay2/47f9415cff08f6ccd690dd05e069b525c622948bf473dc4c65b04ce944ea795e/diff:/var/lib/docker/overlay2/d017f3485bae198a57d7d12b5c6a8f269191559e9c6b6a702a36471e9c7202d1/diff:/var/lib/docker/overlay2/f8b6a892ac11b875ed899db44e4f99094ea26bcbac4f2e021ea8e62f324fb356/diff:/var/lib/docker/overlay2/e87968adcf3580f12303e69f70e8e424cd1e15d4df23ecfe457cb50f9ba69d58/diff:/var/lib/docker/overlay2/e7d3dcc8994f37143ac3bf8bab74113d2fcb7c06ede18906196148098536bed0/diff",
            "MergedDir": "/var/lib/docker/overlay2/420bd14d0a34bd62a56cdfb4439ac2c7990e6468dfde4d1cef869f46838f71c7/merged",
            "UpperDir": "/var/lib/docker/overlay2/420bd14d0a34bd62a56cdfb4439ac2c7990e6468dfde4d1cef869f46838f71c7/diff",
            "WorkDir": "/var/lib/docker/overlay2/420bd14d0a34bd62a56cdfb4439ac2c7990e6468dfde4d1cef869f46838f71c7/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:41058dd4c122275500b8ee145e3ff1692ea26c7c568f55c00caf2878e7c61db0",
            "sha256:96cfd8c115e4d6c7827f4ea9793e3d37ce35628f0de1f1772e55fe6a69924fe6",
            "sha256:561d581071e0c72dacbd7c74ec517b0063f30dfe45508d6630781c550009a11a",
            "sha256:8dc51227e76f6054ed671f7d66a8eb498b81089aac91bae7752c29f743342dcb",
            "sha256:33f3dc589c206b6721f24cad0a0ca2d60dfb75fe3a380747366aa3ae5cd6c642",
            "sha256:7ee9bdb63f9836fb5561f744782e25a073cf251f6f658af97da1ec67cf2864f6",
            "sha256:5724bfe8660c8ea04b7c51375709edb13ebbd07dfab0c589eee78aa2e5775264",
            "sha256:31cb890dc463997eea5ecc4aab9844dfe33334663e7a9961d6aa0e8af7612511",
            "sha256:088b69c7fab4574077f1aa977aa0035bfbe99fd84f766e2424417c3562cf34ef",
            "sha256:0c07d185e909ad7330f25f7052747aac2f62da42dae6513ec99df9ffc0f32ebf",
            "sha256:33df04de6ea613b7f410b5efbe4875d89abb4dd9ddf50d603444b21ba6944953",
            "sha256:e19c7f39758dfa51b8e08861a22acf3e8b5c55e6bb0987ee1398084368d39255"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-10-24T17:48:20.155656408+08:00"
    }
}

更多版本

ghcr.io/wei-shaw/sub2api:0.1.120

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

ghcr.io/wei-shaw/sub2api:0.1.121

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

ghcr.io/wei-shaw/sub2api:0.1.133

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

ghcr.io/wei-shaw/sub2api:0.1.135

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

ghcr.io/wei-shaw/sub2api:0.1.139

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

ghcr.io/wei-shaw/sub2api:0.1.142

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

ghcr.io/wei-shaw/sub2api:0.1.149

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

ghcr.io/wei-shaw/sub2api:0.1.150

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

ghcr.io/wei-shaw/sub2api:0.1.151

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

ghcr.io/wei-shaw/sub2api:0.1.152

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

ghcr.io/wei-shaw/sub2api:0.1.155

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

ghcr.io/wei-shaw/sub2api:0.1.156

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

ghcr.io/wei-shaw/sub2api:0.1.157

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

ghcr.io/wei-shaw/sub2api:0.1.158

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

ghcr.io/wei-shaw/sub2api:0.1.159

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

ghcr.io/wei-shaw/sub2api:0.1.160

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

ghcr.io/wei-shaw/sub2api:0.1.161

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

ghcr.io/wei-shaw/sub2api:0.1.162

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

ghcr.io/wei-shaw/sub2api:0.1.163

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

ghcr.io/wei-shaw/sub2api:0.1.164

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

ghcr.io/wei-shaw/sub2api:0.1.165

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

ghcr.io/wei-shaw/sub2api:0.1.166

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

ghcr.io/wei-shaw/sub2api:0.1.168

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

ghcr.io/wei-shaw/sub2api:0.1.169

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

ghcr.io/wei-shaw/sub2api:0.1.170

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

ghcr.io/wei-shaw/sub2api:0.1.171

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

ghcr.io/wei-shaw/sub2api:0.1.173

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

ghcr.io/wei-shaw/sub2api:0.1.175

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

ghcr.io/wei-shaw/sub2api:0.1.176

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

ghcr.io/wei-shaw/sub2api:0.1.177

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

ghcr.io/wei-shaw/sub2api:0.1.178

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

ghcr.io/wei-shaw/sub2api:0.1.179

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

ghcr.io/wei-shaw/sub2api:0.1.180

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

ghcr.io/wei-shaw/sub2api:0.1.181

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

ghcr.io/wei-shaw/sub2api:0.1.182

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

ghcr.io/wei-shaw/sub2api:0.1.183

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

ghcr.io/wei-shaw/sub2api:0.1.184

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

ghcr.io/wei-shaw/sub2api:0.1.185

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

ghcr.io/wei-shaw/sub2api:0.1.94

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

ghcr.io/wei-shaw/sub2api:0.2.0

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

ghcr.io/wei-shaw/sub2api:0.2.1

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

ghcr.io/wei-shaw/sub2api:0.2.10

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

ghcr.io/wei-shaw/sub2api:0.2.13

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

ghcr.io/wei-shaw/sub2api:0.2.14

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

ghcr.io/wei-shaw/sub2api:0.2.15

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

ghcr.io/wei-shaw/sub2api:0.2.16

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

ghcr.io/wei-shaw/sub2api:0.2.17

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

ghcr.io/wei-shaw/sub2api:0.2.18

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

ghcr.io/wei-shaw/sub2api:0.2.3

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

ghcr.io/wei-shaw/sub2api:0.2.4

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

ghcr.io/wei-shaw/sub2api:0.2.5

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

ghcr.io/wei-shaw/sub2api:0.2.7

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

ghcr.io/wei-shaw/sub2api:0.2.8

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

ghcr.io/wei-shaw/sub2api:0.2.9

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