Comments (4)
/cc @josephschorr @jakedt
The same bug exists in the quay.io Docker image squasher. I uploaded my busybox-hardlinks Docker image into quay.io/alban/busybox-hardlinks and then downloaded a squashed image from the quay.io web interface (click on Fetch tag / Squashed Docker image). Then, the image also has a dangling hard link, so it cannot be extracted:
$ tar tvf /tmp/quay.io-alban-busybox-hardlinks-latest.squash.aci | grep LINK
hrw-r--r-- 0/0 0 2015-10-21 23:26 rootfs/LINK-Z link to rootfs/LINK-A
$ tar xf /tmp/quay.io-alban-busybox-hardlinks-latest.squash.aci
tar: rootfs/LINK-Z: Cannot hard link to ‘rootfs/LINK-A’: No such file or directory
$ sudo docker load < /tmp/quay.io-alban-busybox-hardlinks-latest.squash.aci
Error response from daemon: Untar re-exec error: exit status 1: output: link /rootfs/LINK-A /rootfs/LINK-Z: no such file or directory
from docker2aci.
@alban: I just tried this locally without any errors. I pulled the image from DockerHub, pushed to my local Quay, then squash pulled image. Do you have another repro case I can try?
from docker2aci.
@josephschorr : there is also the image https://hub.docker.com/r/zopyx/xmldirector-plone/ but given its size (854MB), it is easier to try with my image https://hub.docker.com/r/albanc/busybox-hardlinks/ (1MB). I could reproduce the issue just now. I think I mixed the explanation in my comment above between downloading the aci and the Docker squashed image. I can see the problem when using:
$ curl -L -f https://alban+squashedrobot:[email protected]/c1/squash/alban/busybox-hardlinks/latest 2>/dev/null | sudo docker load
Error response from daemon: ApplyLayer exit status 1 stdout: stderr: link /LINK-A /LINK-Z: no such file or directory
from docker2aci.
Hmm, I tried that image. Will try again tomorrow.
from docker2aci.
Related Issues (20)
- Infinite loop vulnerability in retrieving images chain HOT 7
- a malicious ACI created during layer archive extraction via symlink or hardlink attack HOT 6
- Keep docker image labels around after conversion HOT 12
- lib: allow to specify registry and mediatype options HOT 3
- Specify destination file name for created image HOT 2
- Wrong v2 registry check url
- Need to support docker registries that store v1 and v2 images HOT 11
- build fails HOT 4
- [Feature request] Layer caching HOT 1
- docker://debian wrong symlink container/var/lock -> /run/lock HOT 5
- environment variable does not have valid identifier HOT 1
- Manifest differ with same image HOT 10
- Clarify release executables' target, provide statically linked ones HOT 1
- Support image manifest lists / index
- Some images in gcr.io can't be fetched HOT 5
- Converting local files from buildah fails "Could not find image" HOT 3
- failed install docke2aci
- Error: conversion error: error generating ACI: archive/tar: cannot encode header HOT 4
- FTBFS on multiple architectures: error generating ACI: "unknown arch tuple"
- FTBFS with image-spec 1.0.1: undefined: v1.MediaTypeImageManifestList HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker2aci.