Replies: 2 comments 6 replies
-
I wondered if this was going to happen, so I looked through the various public docker-compose and saw that healthchecks were not particularly popular. I would say that "availability of apk" should not be a promise xray makes, but we it can support usecases like "healthchecks" or some other specific customization. It should also not be necessary to build a custom image. You can mount a statically-linked curl into the container as a volume, and it should work fine. Where do you send healthchecks to? some random inbound? |
Beta Was this translation helpful? Give feedback.
-
作为抗审查工具,有必要尽可能减少 CVE 来降低攻击面 最新版的已经 rootless 并作了细致的目录和文件权限 关于重启记录,新版的 docker 映像已经默认记录 WARN 级别日志,它在 /var/log/xray/error.log 中能反映出 Xray 的重启情况 关于健康检查,目前没有实现,感觉也没什么必要性 下面是伪代码: FROM ghcr.io/xtls/xray-core:latest
COPY curl xxxxxxxxxxx........
HEALTHCHECK --interval=5s --timeout=3s --retries=3 \
CMD xxxxxxxxxxx....... || exit 1 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In #3589 , the base image in the Dockerfile is replaced with
chainguard/static
, which doesn't contain a shell orapk
. This change seems to make it difficult or impossible to add custom software such as curl for healthcheck or modify entrypoint and command for startup behavior customization. Is this the expected behavior? Are users with similar needs expected to have to write their own Dockerfiles and build images from scratch?Beta Was this translation helpful? Give feedback.
All reactions