Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the difference between oci workers and containerd workers? #2860

Closed
vlad-ivanov-name opened this issue May 11, 2022 · 2 comments
Closed

Comments

@vlad-ivanov-name
Copy link
Contributor

If I create a builder as follows:

docker buildx create --name buildx-default --driver docker-container --bootstrap

I can see the following in the logs of the container created:

found worker \"...\", labels=map[org.mobyproject.buildkit.worker.executor:oci ...
skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist

What are oci workers and containerd workers? What responsibilities do they have and will choosing one over another provide any benefits?

I'm particularly interested whether choosing containerd worker will speed up loading images into docker (see docker/buildx#107 )

@tonistiigi
Copy link
Member

The difference is in whether BuildKit will use its own storage dir for layer blobs and snapshots or reuse the one containerd instance already manages. If you use buildx create your only option is the OCI driver. Using containerd worker does not speed up loading images into docker atm, it does speed up loading images into containerd.

@vlad-ivanov-name
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants