OCI运行时创建失败:container\u linux.go:349:启动容器进程导致“exec:\“rbase\”:在$PATH中找不到可执行文件:未知

2024-05-12 12:50:37 发布

您现在位置:Python中文网/ 问答频道 /正文

我以前使用类似的代码创建了一个docker容器,如下所示,但我运行了一个基本的python脚本来打印“Hello”。我试图在R中执行RNASeq,并且在尝试运行代码时不断遇到问题

这是我的Dockerfile中的内容

FROM debian:stretch-slim

RUN apt-get update \
    && apt-get install -y --no-install-recommends r-base r-base-dev git python3 \
    && apt-get clean

COPY file.R /

在我的终端上,我运行: docker build -t username/python_git_r_hello .

这运行成功,但当我继续执行以下操作时: docker run -it username/python_git_r_hello:latest r-base file.R

我得到了以下错误:docker:

Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"r-base\": executable file not found in $PATH": unknown.
ERRO[0000] error waiting for container: context canceled

请帮忙,我对使用docker还不熟悉


Tags: installdocker代码git脚本hellobaseget