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

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

Open
navygg opened this issue Jan 31, 2023 · 0 comments
Labels
bug Something isn't working component/nerdctl guest/debian Guest: Debian

Comments

@navygg
Copy link

navygg commented Jan 31, 2023

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

[2/2] RUN echo "hello lima" > /usr/share/nginx/html/index.html:


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

@AkihiroSuda AkihiroSuda added bug Something isn't working guest/debian Guest: Debian component/nerdctl labels Jan 31, 2023
@AkihiroSuda AkihiroSuda changed the title lima nerdctl build failed when limactl start --name=default /usr/local/share/lima/examples/debian.yaml 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) Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component/nerdctl guest/debian Guest: Debian
Projects
None yet
Development

No branches or pull requests

2 participants