You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Image from docker hub
$ dockerc --image docker://oven/bun --output bun
# Image in local docker daemon storage
$ dockerc --image docker-daemon:mysherlock-image:latest --output sherlock_bin
# Specify target instruction set architecture
$ dockerc --image docker://hello-world --arch arm64 --output hello
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.
Build from source
Please note that this project uses Git submodules. If you clone this repository, you may need to run the following commands to initialize and update the submodules:
$ git submodule init
$ git submodule update
This will ensure that you download and update all relevant submodule contents.
dockerc uses a patched version of the zig compiler than can be found on the
nils-dockerc-version branch of the NilsIrl/zig repository. There is an
open PR for the patch to be included in upstream zig.