Open profnandaa opened 7 months ago
What is an OCI worker? I believe that the only worker buildkit has besides containerd is heavily tied to runc (and, transitively, to Linux): https://github.com/moby/buildkit/tree/master/executor/runcexecutor
@slonopotamus -- perhaps it's just nomenclature, @iankingori had started looking at this, I'll let me him chime in. /cc. @billywr
The runc worker is just using the underlying OCI spec (calling it via the runc go library, I guess that's the source of the naming). However, it should be completely possible to replace the runtime there from runc to any other OCI compliant runtime.
Yeah, the goal here is to implement runhcs in place of runc for windows containers. The naming was from main_oci_worker.go.
Currently, only containerd worker is supported and therefore there is a hard dependency on containerd for buildkitd to run. On the Linux end, you have a vanilla option where you can run buildkitd with only
runc
using the OCI worker. Actually, this is the default for Linux, you set--oci-worker=false --containerd-worker=true
to use the containerd worker.However, on Windows, containerd is the only supported worker, and therefore the default.