From be0ec95874bee36808e06fa6458c40840f69f747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Andr=C3=A9?= Date: Wed, 6 Mar 2024 01:28:01 -0800 Subject: [PATCH] Improve README.md --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 100eaab..cda943a 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,19 @@ $ dockerc --image docker://oven/bun --output bun $ zig-out/bin/dockerc --image docker-daemon:mysherlock-image:latest --output sherlock_bin ``` +The output binary can then be called as you would with usual binaries. You can +also specify `-e`, and `-v` in the same way you would when using `docker run`. +Networked services running inside the container can be accessed directly without +having to specify `-p`. + Skopeo is used for loading images, for other locations refer to [its documentation][1]. +## Build from source + +``` +$ zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-linux-musl +``` + ## Features - [X] Compiler docker images into portable binaries @@ -22,10 +33,11 @@ Skopeo is used for loading images, for other locations refer to [its documentati - [X] x86_64 support - [ ] arm64 support - [X] Supports arguments -- [X] [Supports environment variables specifying environment variables][2] -- [ ] Support `-v` +- [X] [Supports specifying environment variables using `-e`][2] +- [X] [Supports specifying volumes using `-v`][3] - [ ] Support other [arguments][0]... [0]: https://docs.docker.com/engine/reference/commandline/container_run/ [1]: https://github.com/containers/skopeo/blob/main/docs/skopeo.1.md#image-names [2]: https://docs.docker.com/reference/cli/docker/container/run/#env +[3]: https://docs.docker.com/reference/cli/docker/container/run/#volume