简体   繁体   中英

Docker : OCI runtime create failed: executable file not found in $PATH

The error message I am getting while running the container:

Docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \\"mkdir NNEEWW\\": executable file not found in $PATH": unknown

My Dockerfile:

FROM python:3

COPY . /

RUN pip install --no-cache-dir -r /requirements.txt

EXPOSE 5678

CMD ["mkdir NNEEWW", "&", "jupyter", "notebook", "--ip=0.0.0.0", "--port=5678", "--allow-root"]

您需要在CMD外部提取"mkdir NNEEWW", "&"* ,就像在docker CMD中运行可执行文件一样,如果需要,您可以使用RUN mkdir NNEEWW命令在CMD命令之前创建一个新文件夹。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM