小编Jus*_*est的帖子

使用 docker Alpine 时出现“tar: not found in archive”错误

我运行这些命令:

docker run -ti --rm alpine
apk add --no-cache curl
curl https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.15.6.tgz | tar xvz --strip 1 package/min
Run Code Online (Sandbox Code Playgroud)

并得到错误tar: package/min: not found in archive

我在 Mac 终端和 docker ubuntu 中运行相同的命令 (curl | tar),它们都成功了。

tar alpine-linux

3
推荐指数
1
解决办法
5434
查看次数

标签 统计

alpine-linux ×1

tar ×1