Skip to content
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

"img unpack" hangs if -o is used with relative path #328

Open
jdwx opened this issue Jan 28, 2021 · 1 comment
Open

"img unpack" hangs if -o is used with relative path #328

jdwx opened this issue Jan 28, 2021 · 1 comment

Comments

@jdwx
Copy link

jdwx commented Jan 28, 2021

This was (probably) mentioned in issue #201 but seems like a separate issue.

These commands work:

$ cd /tmp; img unpack image:tag
$ img unpack -o /tmp/rootfs image:tag

The commands hang indefinitely:

$ cd /tmp; img unpack -o rootfs image:tag
$ cd /tmp; img unpack -o ./rootfs image:tag

Example output from debug:

$ ~/img unpack -d -o rootfs jdwx/alpine
DEBU[0000] checking runc                                 disableEmbeddedRunc=false state=/home/jdwx/.local/share/img
DEBU[0000] runc found                                    commit=56aca5aa50d07548d5db8fd33e9dc562f70f3208 spec=1.0.2 version=1.0.0-rc10+dev
DEBU[0000] checking runc                                 disableEmbeddedRunc=false state=/home/jdwx/.local/share/img
DEBU[0000] runc found                                    commit=56aca5aa50d07548d5db8fd33e9dc562f70f3208 spec=1.0.2 version=1.0.0-rc10+dev
DEBU[0000] using backend: overlayfs
WARN[0000] using host network as the default
DEBU[0000] Unpacking layer sha256:596ba82af5aaa3e2fd9d6f955b8b94f0744a2b60710e3c243ba3e4a467f051d1

Running "top" shows both img and runc spinning with 100% CPU usage.

The existing tests appear only to cover absolute paths because that's what ioutil.TempDir() returns.

@tobwen
Copy link

tobwen commented Mar 19, 2021

I can verify this on latest Debian 10 (AMD64).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants