小编jun*_*oïc的帖子

创建 docker 映像时出错:“/bin/sh: 1: -E: 未找到”

我尝试从 Dockerfile 构建映像,但收到此错误:

/bin/sh: 1: -E: not found
The command '/bin/sh -c curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.x | -E bash -' returned a non-zero code: 127.
Run Code Online (Sandbox Code Playgroud)

我得到它是因为 Dockerfile 中的以下行:

RUN  install curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.x | -E bash -
Run Code Online (Sandbox Code Playgroud)

bash node.js docker

0
推荐指数
1
解决办法
1496
查看次数

标签 统计

bash ×1

docker ×1

node.js ×1