Open WolleTD opened 4 years ago
I'm not a Go developer, but upon further investigation, I managed to understand the cause.
Unpacking a tar file depends on calling dockers own reexec
-Module right at the beginning of main()
: https://github.com/docker/docker-ce/blob/fe40dc7ec9f34021fcf6561b1d69608bc05d6329/components/engine/cmd/dockerd/docker.go#L72
This hack at least allows unpacking a tar as root, but somehow img's own, userns-aware reexec has to be plumbed into this... https://github.com/WolleTD/img/commit/6a47aae0a43274050aac9913b9034132dc53097a
Same problem with a local tar.gz
Url as source is working but not with a local tar or tar.gz.
When trying to add a tar archive to an image, the build fails with this confusing error and the img usage text.
Steps to reproduce
Version info
Built with https://aur.archlinux.org/packages/img-git/