-
Notifications
You must be signed in to change notification settings - Fork 101
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
[Rootless] Permission denied: unknown on image pull via nerdctl #590
Comments
Any error logs are output from nydus-snapshotter for the ubuntu:20.04 image? The problem doesn't seem to be nydus related (ubuntu:20.04 is not a nydus image), have you tried removing |
Thank you for reply! Yes, it works fine with --snapshotter overlayfs (Currently I have default snapshotter - stargz): $ nerdctl --snapshotter=overlayfs pull ubuntu:20.04
docker.io/library/ubuntu:20.04: resolved |++++++++++++++++++++++++++++++++++++++|
index-sha256:71b82b8e734f5cd0b3533a16f40ca1271f28d87343972bb4cd6bd6c38f1bd38e: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:39e6324487ef503ef36c38bf0b57935d639398ca0d6081fd20a17f90b956a7a4: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:33985b2ba010a084175876629b280ed9ae49965e9ee5d30b79896cad707bf350: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:43cfb69dbb464ebad014cd4687bf02ee4f5011d540916c658af36faafbfd3481: done |++++++++++++++++++++++++++++++++++++++|
elapsed: 180.0s total: 26.2 M (149.3 KiB/s) With --snapshotter=nydus $ nerdctl --snapshotter=nydus pull ubuntu:20.04
docker.io/library/ubuntu:20.04: resolved |++++++++++++++++++++++++++++++++++++++|
index-sha256:71b82b8e734f5cd0b3533a16f40ca1271f28d87343972bb4cd6bd6c38f1bd38e: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:39e6324487ef503ef36c38bf0b57935d639398ca0d6081fd20a17f90b956a7a4: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:33985b2ba010a084175876629b280ed9ae49965e9ee5d30b79896cad707bf350: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:43cfb69dbb464ebad014cd4687bf02ee4f5011d540916c658af36faafbfd3481: done |++++++++++++++++++++++++++++++++++++++|
elapsed: 31.9s total: 26.2 M (842.3 KiB/s)
FATA[0032] failed to commit snapshot extract-111208692-sqvL sha256:106e8431b412f51ccd75ea46a2d5cb4343b23273cbcf50188377cb93aa9a6d82: open /home/inklesspen/.local/share/containerd-nydus/snapshots/1/fs/var/cache/apt/archives/partial: permission denied: unknown Here's nydus logs: |
Is it would be simpler if I share qemu virtual machine image with that issue? So you won't worry about reproducing bug |
There are no exceptions in the nydus snapshotter logs, please check if it is related to the access permissions of the directory where |
Chmodded 777, still doesn't work $ cd /home/inklesspen/.local/share/containerd-nydus
$ ls -lah
total 80K
drwx------ 1 inklesspen inklesspen 74 апр 24 16:08 .
drwxr-xr-x 1 inklesspen inklesspen 1,4K апр 25 02:04 ..
drwxr-xr-x 1 inklesspen inklesspen 0 апр 21 16:00 cache
drwxr-xr-x 1 inklesspen inklesspen 42 апр 21 16:00 logs
-rw------- 1 inklesspen inklesspen 64K апр 24 16:08 metadata.db
-rw------- 1 inklesspen inklesspen 64K апр 24 16:01 nydus.db
drwx------ 1 inklesspen inklesspen 0 апр 24 16:08 snapshots
$ ls -lah snapshots
total 0
drwx------ 1 inklesspen inklesspen 0 апр 24 16:08 .
drwx------ 1 inklesspen inklesspen 74 апр 24 16:08 ..
$ chmod -R 777 .
$ ls -lah
total 88K
drwxrwxrwx 1 inklesspen inklesspen 74 апр 24 16:08 .
drwxr-xr-x 1 inklesspen inklesspen 1,4K апр 25 10:59 ..
drwxrwxrwx 1 inklesspen inklesspen 0 апр 21 16:00 cache
drwxrwxrwx 1 inklesspen inklesspen 42 апр 21 16:00 logs
-rwxrwxrwx 1 inklesspen inklesspen 64K апр 25 11:00 metadata.db
-rwxrwxrwx 1 inklesspen inklesspen 64K апр 24 16:01 nydus.db
drwxrwxrwx 1 inklesspen inklesspen 2 апр 25 11:00 snapshots
$ nerdctl --snapshotter=nydus pull ubuntu:20.04
docker.io/library/ubuntu:20.04: resolved |++++++++++++++++++++++++++++++++++++++|
index-sha256:71b82b8e734f5cd0b3533a16f40ca1271f28d87343972bb4cd6bd6c38f1bd38e: exists |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:39e6324487ef503ef36c38bf0b57935d639398ca0d6081fd20a17f90b956a7a4: exists |++++++++++++++++++++++++++++++++++++++|
config-sha256:33985b2ba010a084175876629b280ed9ae49965e9ee5d30b79896cad707bf350: exists |++++++++++++++++++++++++++++++++++++++|
layer-sha256:43cfb69dbb464ebad014cd4687bf02ee4f5011d540916c658af36faafbfd3481: done |++++++++++++++++++++++++++++++++++++++|
elapsed: 14.1s total: 26.2 M (1.9 MiB/s)
FATA[0014] failed to commit snapshot extract-313934468-QzOP sha256:106e8431b412f51ccd75ea46a2d5cb4343b23273cbcf50188377cb93aa9a6d82: open /home/inklesspen/.local/share/containerd-nydus/snapshots/4/fs/var/cache/apt/archives/partial: permission denied: unknown |
@inklesspen1rus Looks like you are running rootless container. Nydus-snapshotter is not expected to run in such environment yet. For rootless container, nydus-snapshotter has to help containerd do to UIDMAP mount, however, it is not implemented yet. |
Issue
Tried to pull ubuntu:20.04 via nerdctl using nydus-snapshotter, but got permission denied: unknown:
Expected result
alpine:3 pulls fine:
Environment
containerd in rootless via user systemd
config.tar.gz from $HOME/.config
The text was updated successfully, but these errors were encountered: