s6

最後更新: 2023-06-01

介紹

s6

HomePage: https://github.com/just-containers/s6-overlay

At its core, s6 is a process supervision suite, like its ancestor daemontools and its close cousin runit.

 


Dockerfile Example

 

# Use your favorite image
FROM ubuntu
ARG LINK=https://github.com/just-containers/s6-overlay/releases/download
ARG S6_OVERLAY_VERSION=3.1.5.0

RUN apt-get update && apt-get install -y nginx xz-utils
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
CMD ["/usr/sbin/nginx"]

ADD v${LINK}/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
ADD v${LINK}/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz
ENTRYPOINT ["/init"]

 

 

Creative Commons license icon Creative Commons license icon