Closed zhangyoufu closed 4 years ago
Issue-Label Bot is automatically applying the label bug
to this issue, with a confidence of 0.87. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
@zhangyoufu This sounds like #231 , I have fixed some runc issues in my fork. I have PRs pending. https://github.com/kekoav/img
@zhangyoufu With my fork, I was able do the following:
$ docker run --rm -it \
> --security-opt seccomp=unconfined --security-opt apparmor=unconfined \
> --entrypoint /bin/sh \
> --workdir /tmp \
> kekoav/img
/tmp $ img pull alpine
Pulling alpine...
Pulled: sha256:34b01a20e0d265542de0dfe37f04adee7d30f878adf4ff002284403661980be9
Size: 2.63MiB
/tmp $ img unpack alpine
WARN[0000] Process sandbox is not available, consider unmasking procfs: mount: permission denied (are you root?)
Successfully unpacked rootfs for alpine to: /tmp/rootfs
/tmp $ ls -a /tmp/rootfs/
. .. bin dev etc home lib media mnt opt proc root run sbin srv sys tmp usr var
I do get a warning about procfs, but the unpack seems to work. This is likely fixed by #232 .
@kekoav It works for me. Thanks!
@AkihiroSuda this is resolved, please close.
similar to issue #204
https://github.com/genuinetools/img/blob/013bb211567bb92374315affaf0ffa1787fb23c2/unpack.go#L24 maybe this line should be changed to
true
?