lima-vm / lima-vm/lima

lima start default failed to start containerd due to newuidmap not installed

Open
#3,526 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description

# Description

After `lima start default` finished successfully

```
> lima nerdctl run -d --name nginx -p 127.0.0.1:8080:80 nginx:alpine
FATA[0000] rootless containerd not running? (hint: use `containerd-rootless-setuptool.sh install` to start rootless containerd): stat /run/user/501/containerd-rootless: no such file or directory
```
Then I try to execute `containerd-rootless-setuptool.sh install``

```
> lima
$ containerd-rootless-setuptool.sh install
[INFO] Checking RootlessKit functionality
[rootlesskit:parent] error: failed to setup UID/GID map: newuidmap 2191 [0 501 1 1 524288 1073741824] failed: : exec: "newuidmap": executable file not found in $PATH
[ERROR] RootlessKit failed, see the error messages and https://rootlesscontaine.rs/getting-started/common/ .
```

After I installed newuidmap manually, ` containerd-rootless-setuptool.sh install` succeed.

lima version: 1.0.7

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.