Automatically start buildkit for minikube image build
for containerd
#11195
Labels
co/runtime/containerd
kind/feature
Categorizes issue or PR as related to a new feature.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone
Trying to build an image for containerd will likely result in an error like:
error: failed to get status: rpc error: code = Unavailable desc = connection error: desc = "transport: error while dialing: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory"
This is because of the missing packaging and units, for buildkitd component.
The workaround suggested by upstream is to start the daemon up manually:
sudo -b buildkitd --oci-worker=false --containerd-worker=true --containerd-worker-namespace=k8s.io
It is documented when running
buildctl
, but not forminikube image build
https://minikube.sigs.k8s.io/docs/handbook/pushing/#6-pushing-directly-to-in-cluster-containerd-buildkitd
Eventually it is supposed to be started up with systemd socket-activation.
sudo systemctl start buildkit.socket
#9947
moby/buildkit#1923But it is not yet available in any released version of BuildKit, such as 0.8.2
#10068
moby/buildkit#1793
The text was updated successfully, but these errors were encountered: