运行 docker 图片失败
running a docker image fails
我期待 运行 成功 docker 图像,但是无法访问并出现权限被拒绝的错误,如下所示。
#base image
FROM selenium/standalone-chrome
# Install Node.js
RUN sudo apt-get update
RUN sudo apt-get install --yes curl
RUN curl --silent --location https://deb.nodesource.com/setup_8.x | sudo bash
#Define runtime
ENTRYPOINT /app/login.test.js
为什么权限被拒绝了? P.S: 我已使用 (cd dir
) 更改为包含 Dockerfile 和自动化测试 JS 文件的目录。
您的 .js
文件本身不是可执行文件,这就是您的权限被拒绝的原因。
尝试 运行 通过 JavaScript:
ENTRYPOINT node /app/login.test.js
我期待 运行 成功 docker 图像,但是无法访问并出现权限被拒绝的错误,如下所示。
#base image
FROM selenium/standalone-chrome
# Install Node.js
RUN sudo apt-get update
RUN sudo apt-get install --yes curl
RUN curl --silent --location https://deb.nodesource.com/setup_8.x | sudo bash
#Define runtime
ENTRYPOINT /app/login.test.js
为什么权限被拒绝了? P.S: 我已使用 (cd dir
) 更改为包含 Dockerfile 和自动化测试 JS 文件的目录。
您的 .js
文件本身不是可执行文件,这就是您的权限被拒绝的原因。
尝试 运行 通过 JavaScript:
ENTRYPOINT node /app/login.test.js