-
I'm one of those users who use a pre-installed Docker toolchain, as described here: https://github.com/bazelbuild/rules_docker/blob/3040e1fd74659a52d1cdaff81359f57ee0e2bb41/README.md?plain=1#L127 My setup relies on a certain vendor injecting the Docker version they see fit in their product. I would like to not stray away from their solution, because when they find out that my Bazel code tries to run its own show with its own Docker binary, they may try to discount all of their responsibility if something tangentially related to Docker doesn't work in my setup, and shift the responsibility for this on me. Where can I find the settings to configure the Docker toolchain in rules_oci or anything else that will completely eliminate this behavior? Line 27 in bf4c60b |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
rules_oci does not have docker dependency, therefore does need a docker toolchain. |
Beta Was this translation helpful? Give feedback.
I am not sure where the requirements come from, nowhere in rules_oci we depend on
docker
executable, everything we depend on is brought by a hermetic toolchain, eg: crane, regctl.With the expection of oci_load;
originally oci_load did not depend on the host docker client, we just told people to use
bazel build :tarball
and dodocker load -i bazel-bin/pth/tarball.tar
However people wanted a convenient way to do
bazel build :oci_tarball | docker load
so we made oci_load runnable which does exactly this.