Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

'error extracting tarball' with Ubuntu docker image #277

Open
alicebob opened this issue Dec 1, 2016 · 5 comments
Open

'error extracting tarball' with Ubuntu docker image #277

alicebob opened this issue Dec 1, 2016 · 5 comments

Comments

@alicebob
Copy link

alicebob commented Dec 1, 2016

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 alicebob changed the title 'broken tar' for Ubuntu image 'error extracting tarball' for Ubuntu docker image Dec 1, 2016
@alicebob alicebob changed the title 'error extracting tarball' for Ubuntu docker image 'error extracting tarball' with Ubuntu docker image Dec 1, 2016
@jonboulle
Copy link
Contributor

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

@shuhaowu
Copy link

Using the latest master (bc82f81), 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
Copy link

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

@sepbot
Copy link

sepbot commented Jun 24, 2017

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.

@sanmai-NL
Copy link
Contributor

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.

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

No branches or pull requests

5 participants