-
Notifications
You must be signed in to change notification settings - Fork 83
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
oci-image-tool: error extracting layer: symlink /lib/systemd/systemd tmp2/bin/systemd: file exists #41
Comments
On Sat, Oct 15, 2016 at 07:53:22AM -0700, Tomas Dohnalek wrote:
Maybe you have multiple layers in the OCI image and two of them have If you need a hack to work around this before the spec and tools are os.RemoveAll(path) in around 2. Cheers, This email may be signed or encrypted with GnuPG (http://www.gnupg.org). |
@wking ,thank you for hint where to search for the problem. I have managed to go further by putting if _, err := os.Stat(path); !os.IsNotExist(err) {
os.RemoveAll(path)
} in here [1]. Now it fails on
Maybe the problem is in relative link: $ docker run -it dohnto/debian-skopeo ls -l /etc/modules-load.d/modules.conf
lrwxrwxrwx 1 root root 10 Sep 2 22:02 /etc/modules-load.d/modules.conf -> ../modules [1] Line 235 in f24d27b
|
On Mon, Oct 17, 2016 at 11:02:45AM -0700, Tomas Dohnalek wrote:
You don't want to be following links. Use Lstat, or just skip the |
Ok, I removed the checks and put the removal in here [1] and here [2], because file $ docker run -it dohnto/debian-skopeo ls -l /usr/bin/perl5.20.2
-rwxr-xr-x 2 root root 10416 Jul 22 15:59 /usr/bin/perl5.20.2 file $ ./oci-unpack --ref latest tmp tmp2
unpacking failed: error extracting layer: unable to open file: open tmp2/usr/share/zoneinfo/Asia/Kolkata: too many levels of symbolic links $ docker run -it dohnto/debian-skopeo ls -l /usr/share/zoneinfo/Asia/Kolkata
-rw-r--r-- 1 root root 265 Jul 5 18:15 /usr/share/zoneinfo/Asia/Kolkata Does not seem to be link at all so I am lost again. But [1] Line 235 in f24d27b [2] Line 224 in f24d27b |
On Tue, Oct 18, 2016 at 01:04:35AM -0700, Tomas Dohnalek wrote:
I'm not sure what's going on with your symlink issue, but I don't |
Your pull request #42 seem to solve my problem completely. Thank you. |
Hello, I am trying to examine a docker images without a docker tool. I have created a simple smallest docker image, where I encounter following error. The image can be found in docker repository:
dohnto/debian-skopeo
. The dockerfile is followingNote, that during building such an image, a
systemd
will be upgraded:My workflow in further examination is following:
I expected this to work and the
oci-image-tool
to actually unpack the oci image into a folder I could chroot. Thank you for any help or workaround how to solve this issue.Version information:
The text was updated successfully, but these errors were encountered: