ADD Dockerfile command does not unpack tarballs
andrewshadura opened this issue · 2 comments
andrewshadura commented
Describe the bug
ADD tarball.tar.gz /
is supposed to unpack the said tarball into the root. Instead, it just copies it into it.
To Reproduce
The specific Dockerfile I ran into this at:
FROM scratch
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
ARG DEBIAN_FRONTEND=noninteractive
ARG OSPACK=debian.tar.gz
ADD ${OSPACK} /
RUN apt-get update
Here, debian.tar.gz
is a minimal Debian rootfs tarball.
Expected behavior
The tarball is unpacked, so that I can run commands using its contents.
Instead, I’m getting:
info * Step 6/7 (modifyfs) : ADD debian.tar.gz / (465a0d0c)
info * Execute ADD debian.tar.gz / (465a0d0c) took 91.261753ms
info * Not committing step ADD debian.tar.gz / (465a0d0c)
info * Step 6/7 (modifyfs) : RUN apt-get update (d6692f4c)
error failed to execute build plan: execute stage: build stage 0: build node: do execute: execute step: cmd start: exec: "sh": executable file not found in $PATH
andrewshadura commented
Thanks, but it seems that PR only adds support for tar.gz but not plain tar
archives or tar.bz2/tar.xz or tars compressed with other compressors.
…--
Cheers,
Andrej
On Wed, 11 Mar 2020, 22:01 Yiran Wang, ***@***.***> wrote:
Closed #298 <#298> via #309
<#309>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#298 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACLQBM64OMTN3BKP6LNHSDRG73Z3ANCNFSM4KGQU4AQ>
.
yiranwang52 commented
Let me keep the issue open until they are all supported