Docker构建:xz(stdin):文件格式不被识别
问题描述:
您好总Docker noob在这里,有没有依赖我可以运行,所以这个错误消失?Docker构建:xz(stdin):文件格式不被识别
Step 19/40 : RUN curl -OL https://www.haskell.org/ghc/dist/${ghc%[a-z]}/ghc-${ghc}-x86_64-deb7-linux.tar.xz | tar -xJf- && cd ghc-${ghc} && ./configure && make install
---> Running in 0141996d759f
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 161 100 161 0 0 335 0 --:--:-- --:--:-- --:--:-- 336
100 85.5M 100 85.5M 0 0 308k 0 0:04:44 0:04:44 --:--:-- 358k
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now
The command '/bin/sh -c curl -OL https://www.haskell.org/ghc/dist/${ghc%[a-z]}/ghc-${ghc}-x86_64-deb7-linux.tar.xz | tar -xJf- && cd ghc-${ghc} && ./configure && make install' returned a non-zero code: 2
答
的问题是-O
选项卷曲写入到磁盘,而不是标准输出。
试一下:curl -L https://...
我现在收到一个不同的错误。 – seansinflipflops
输出是什么? –
'/ bin/sh:第0行:cd:ghc-7.10.3b:没有这样的文件或目录' – seansinflipflops