lima nerdctl build failed when limactl start --name=default /usr/local/share/lima/examples/debian.yaml (failed to mount /var/lib/containerd/tmpmounts/containerd-mount3015263298: operation not permitted: unknown
)
#1344
Labels
Description
I installed lima by "brew install lima" as alternatives of docker/docker desktop on my Macbook Pro. Then limactl start --name=default /usr/local/share/lima/examples/debian.yaml. But when I executed "lima nerdctl build", I got failed result.
brew info lima
==> lima: stable 0.11.1 (bottled), HEAD
Linux virtual machines
lima uname -a
Linux lima-default 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux
limactl list
NAME STATUS SSH ARCH CPUS MEMORY DISK
default Running 127.0.0.1:60022 x86_64 2 4GiB 50GiB
cat Dockerfile
FROM nginx
RUN echo "hello lima" > /usr/share/nginx/html/index.html
lima nerdctl build -f Dockerfile -t nginx:test .
[+] Building 2.1s (5/5) FINISHED
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 105B 0.1s
=> [internal] load metadata for docker.io/library/nginx:latest 1.8s
=> CACHED [1/2] FROM docker.io/library/nginx@sha256:b8f2383a95879e1ae064940d9a200f67a6c79e710ed82ac42263397367e7cc4e 0.1s
=> => resolve docker.io/library/nginx@sha256:b8f2383a95879e1ae064940d9a200f67a6c79e710ed82ac42263397367e7cc4e 0.1s
=> ERROR [2/2] RUN echo "hello lima" > /usr/share/nginx/html/index.html 0.0s
Dockerfile:2
1 | FROM nginx
2 | >>> RUN echo "hello lima" > /usr/share/nginx/html/index.html
3 |
error: failed to solve: failed to compute cache key: failed to mount /var/lib/containerd/tmpmounts/containerd-mount3015263298: operation not permitted: unknown
FATA[0002] unrecognized image format
After "limactl start" with no arguments(the default is Ubuntu), lima nerdctl build succeed.
lima uname -a
Linux lima-default 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: