我尝试在https://labs.play-with-docker.com使用我的Dockerfile。其EOL转换为LF。我的档案:
FROM alpine
RUN apk --no-cache add curl
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
WORKDIR /root/.deno/bin
# To print deno version at container start.
CMD ["/root/.deno/bin/deno", "--version"]
我启动命令:
docker build -t deno .
docker run --rm --name deno deno
但是我得到了错误:
standard_init_linux.go:211: exec user process caused "no such file or directory"
为什么会发生?我该如何解决?
答案 0 :(得分:1)
高山和deno
安装程序出了点问题。它只能在安装后执行deno。
与此同时效果很好:
FROM ubuntu
RUN apt-get update
RUN apt-get install -y curl bash unzip
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
CMD ["/root/.deno/bin/deno", "--version"]