From a81b6f784acc89e32a86bf6c2a9bb0c53dfb23cb Mon Sep 17 00:00:00 2001 From: kfei Date: Sat, 6 Dec 2014 21:50:29 -0800 Subject: [PATCH] README: Add example of service directory Signed-off-by: kfei --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c32a7ec..2b1ef59 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,18 @@ Once you have s6 compiled, copy that tarball Use `ADD` instruction in Dockerfile to layer s6 binaries onto it, e.g., ```bash -ADD s6-1.1.3.2-musl-static.tar / +ADD s6-1.1.3.2-musl-static.tar.xz / +``` + +Layer the s6 service directory onto it, e.g., +```bash +COPY rootfs/service /service ``` Then you can set your image's entrypoint to s6: ```bash ENTRYPOINT ["/usr/bin/s6-svscan", "/service"] ``` -Where `/service` is the *service directory* for s6. For more examples, have a look at my [docktorrent](https://github.com/kfei/docktorrent) repository.