build icon indicating copy to clipboard operation
build copied to clipboard

'error extracting tarball' with Ubuntu docker image

Open alicebob opened this issue 8 years ago • 5 comments

Hello,

I'm trying to build an image on the docker Ubuntu image, but it only works when acbuild is run as root.

$ acbuild --debug begin docker://ubuntu:latest
Beginning build with docker://ubuntu:latest
Downloading sha256:9332eaf1a55 [=============================]     162 B / 162 B
Downloading sha256:af49a5ceb2a [=============================] 50.1 MB / 50.1 MB
Downloading sha256:8f9757b472e [=============================]     824 B / 824 B
Downloading sha256:e931b117db3 [=============================]     518 B / 518 B
Downloading sha256:a3ed95caeb0 [=============================]       32 B / 32 B
Downloading sha256:47b5e16c081 [=============================]     682 B / 682 B
begin: error extracting tarball
$

As root it's all fine:

# acbuild --debug begin docker://ubuntu:latest 
Beginning build with docker://ubuntu:latest
Downloading sha256:af49a5ceb2a [=============================] 50.1 MB / 50.1 MB
Downloading sha256:e931b117db3 [=============================]     518 B / 518 B
Downloading sha256:47b5e16c081 [=============================]     682 B / 682 B
Downloading sha256:8f9757b472e [=============================]     824 B / 824 B
Downloading sha256:9332eaf1a55 [=============================]     162 B / 162 B
Downloading sha256:a3ed95caeb0 [=============================]       32 B / 32 B
# 

Going via docker2aci gives the same problem. acbuild I installed via go get a few days ago. Of course I can just run things as root (not great, but fine), but the error message could be improved.

alicebob avatar Dec 01 '16 08:12 alicebob

Seems like we might want to introduce the rkt log package to be able to properly print the wrapped error here.

jonboulle avatar Dec 01 '16 14:12 jonboulle

Using the latest master (bc82f81029aa304e1bd23d4a778406a953971e42), I definitely still see this error. However, using docker2aci (74ed3c05137aeb20c7d2cb5886b95c7e0faec1cf) seems to work fine.

Does this mean someone just have to bump the docker2aci in vendor to make it work?

shuhaowu avatar Jun 15 '17 03:06 shuhaowu

Spoke too soon, turns out if you download an image via docker2aci and try to use acbuild without root, this will still fail.

shuhaowu avatar Jun 15 '17 03:06 shuhaowu

I don't have any problems beginning a build with docker://alpine as a regular user but docker://base/archlinux fails the same way as described above without super user privileges.

sepbot avatar Jun 24 '17 06:06 sepbot

Confirmed under Linux 4.11.9-1-ARCH #1 SMP PREEMPT Wed Jul 5 18:23:08 CEST 2017 x86_64 GNU/Linux with only XFS filesystems mounted.

sanmai-NL avatar Jul 11 '17 12:07 sanmai-NL