moby--moby/pkg/archive
Akihiro Suda 0afc71fc90
archive: add human-readable hint to Lchown error
Before:
```
$ docker pull gcr.io/kubeflow-images-public/tensorflow-1.14.0-notebook-cpu:v0.7.0
failed to register layer: ApplyLayer exit status 1 stdout:  stderr: lchown /usr/local/bin/docker-credential-gcr: invalid argument
```

After:
```
$ docker pull gcr.io/kubeflow-images-public/tensorflow-1.14.0-notebook-cpu:v0.7.0
failed to register layer: ApplyLayer exit status 1 stdout:  stderr: failed to Lchown "/usr/local/bin/docker-credential-gcr" for UID 205001, GID 5000:
lchown /usr/local/bin/docker-credential-gcr: invalid argument (try increasing the number of subordinate IDs in /etc/subuid and /etc/subgid)
```

For issue 43576

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-05-30 11:27:08 +09:00
..
testdata
README.md
archive.go archive: add human-readable hint to Lchown error 2022-05-30 11:27:08 +09:00
archive_linux.go pkg/archive: audit gosec file-traversal lints 2022-02-18 15:42:22 -05:00
archive_linux_test.go
archive_other.go
archive_test.go test: use `T.Setenv` to set env vars in tests 2022-04-23 17:44:16 +08:00
archive_unix.go
archive_unix_test.go
archive_windows.go
archive_windows_test.go
changes.go Finish refactor of UID/GID usage to a new struct 2022-03-14 16:28:57 -04:00
changes_linux.go
changes_other.go
changes_posix_test.go Finish refactor of UID/GID usage to a new struct 2022-03-14 16:28:57 -04:00
changes_test.go Finish refactor of UID/GID usage to a new struct 2022-03-14 16:28:57 -04:00
changes_unix.go
changes_windows.go
copy.go all: replace strings.Replace with strings.ReplaceAll 2022-05-09 19:45:40 +08:00
copy_unix.go
copy_unix_test.go
copy_windows.go
diff.go Finish refactor of UID/GID usage to a new struct 2022-03-14 16:28:57 -04:00
diff_test.go
example_changes.go
time_linux.go
time_unsupported.go
utils_test.go
whiteouts.go
wrap.go
wrap_test.go

README.md

This code provides helper functions for dealing with archive files.