containerd/archive
Akihiro Suda d2f30150b3
archive: add human-readable hint to Lchown error
Before:
```
$ nerdctl pull gcr.io/kubeflow-images-public/tensorflow-1.14.0-notebook-cpu:v0.7.0
FATA[0026] failed to extract layer sha256:f8a604834d388fd3d04c26e4ed832b36b617ea8a4e0b1665b9199bd10cfcb171: mount callback failed on /var/lib/containerd/tmpmounts/containerd-mount1818823128:
lchown /var/lib/containerd/tmpmounts/containerd-mount1818823128/usr/local/bin/docker-credential-gcr: invalid argument: unknown
```

After:
```
$ nerdctl pull gcr.io/kubeflow-images-public/tensorflow-1.14.0-notebook-cpu:v0.7.0
FATA[0027] failed to extract layer sha256:f8a604834d388fd3d04c26e4ed832b36b617ea8a4e0b1665b9199bd10cfcb171: mount callback failed on /var/lib/containerd/tmpmounts/containerd-mount3521205359:
failed to Lchown "/var/lib/containerd/tmpmounts/containerd-mount3521205359/usr/local/bin/docker-credential-gcr" for UID 205001, GID 5000:
lchown /var/lib/containerd/tmpmounts/containerd-mount3521205359/usr/local/bin/docker-credential-gcr: invalid argument
(Hint: try increasing the number of subordinate IDs in /etc/subuid and /etc/subgid): unknown
```

Related to moby/moby issue 43576 but for containerd

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-05-24 17:57:53 +09:00
..
compression Restore decompression benchmarks 2022-05-18 18:25:11 +00:00
tartest Fix annotation typo error 2018-12-14 23:18:42 +08:00
issues_test.go test: use T.TempDir to create temporary test directory 2022-03-15 14:03:50 +08:00
tar_freebsd.go Remove redundant build tags 2021-08-05 22:27:46 -07:00
tar_linux_test.go test: use T.TempDir to create temporary test directory 2022-03-15 14:03:50 +08:00
tar_mostunix.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
tar_opts_linux.go Remove redundant build tags 2021-08-05 22:27:46 -07:00
tar_opts_windows.go docs: rename main to master 2021-08-10 09:42:16 -07:00
tar_opts.go Implement windowsDiff.Compare via hcsshim/pkg/ociwclayer 2021-04-10 02:02:33 +10:00
tar_test.go test: use T.TempDir to create temporary test directory 2022-03-15 14:03:50 +08:00
tar_unix.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
tar_windows.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
tar.go archive: add human-readable hint to Lchown error 2022-05-24 17:57:53 +09:00
time_unix.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
time_windows.go Licence header added 2018-02-19 10:32:26 +09:00
time.go Licence header added 2018-02-19 10:32:26 +09:00