Open Leletir opened 2 years ago
Any update of this issue?
+1 So buildKit does not support NFS?
I'm running into a similar issue when running buildkitd
directly in rootless mode:
Buildkitd output:
buildkit@buildkit-test:~$ PATH=$PATH:$PWD/bin ./rootlesskit buildkitd --addr tcp://0.0.0.0:1234 --rootless
INFO[2023-08-31T10:41:07Z] auto snapshotter: using overlayfs
INFO[2023-08-31T10:41:07Z] found worker "gy34t5pvh6olao3ltsvw81zfh", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:buildkit-test org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/386]
WARN[2023-08-31T10:41:07Z] skipping containerd worker, as "/run/containerd/containerd.sock" does not exist
INFO[2023-08-31T10:41:07Z] found 1 workers, default="gy34t5pvh6olao3ltsvw81zfh"
WARN[2023-08-31T10:41:07Z] currently, only the default worker can be used.
WARN[2023-08-31T10:41:07Z] TLS is not enabled for tcp://0.0.0.0:1234. enabling mutual TLS authentication is highly recommended
INFO[2023-08-31T10:41:07Z] running server on [::]:1234
ERRO[2023-08-31T10:41:12Z] /moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = failed to compute cache key: failed to create temp dir: mkdir /run/user/0/containerd-mount1085290079: permission denied
Docker buildx output:
WARNING: No output specified with remote driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
Dockerfile:2
--------------------
1 | FROM ubuntu:latest
2 | >>> RUN apt-get update && apt-get install sysbench -y && sysbench cpu run
3 |
--------------------
ERROR: failed to solve: failed to compute cache key: failed to create temp dir: mkdir /run/user/0/containerd-mount1085290079: permission denied
buildkitd github.com/moby/buildkit v0.12.2 567a99433ca23402d5e9b9f9124005d2e59b8861
@NiklasRosenstein @renhao-0518 @weixiao-huang @Leletir I tried to use initcontainer to solve this problem
The way to do this is the following.
initContainers:
- name: prepare
image: alpine:3.10
command:
- sh
- -c
- "chmod 777 /mnt/buildkit"
Hello,
First of all, thank you for your work !
Here is my setup:
Here is the StatefulSet manifests:
The buildkit configuration file:
And the logs with the error:
The content of the "res/" directory is the following:
When I don't mount a volume in this directory, everything works fine.
In case you're wondering the '$HOME/.local/share/buildkit' as the following rights:
drwxrwsrwx 2 user user 4096 Jun 6 15:49 buildkit
Do you have any idea of what could be wrong in my configuration ? Thanks in advance.