首页 > 解决方案 > 在 Makefile 中运行的 Docker 上找不到文件

问题描述

我正在尝试docker run在 Makefile 内部进行操作,但它失败了,File not found error但相同的命令在我的终端上运行良好。

这是我从终端运行的命令,它运行良好。 docker run -it image_name command_name scripts/

我的 Makefile 看起来像这样

run-commands:
    docker run -it image_name command_name scripts/

运行时ERROR: file not found: scripts/出现错误make run-commands。给出绝对路径也不起作用。

任何想法为什么我看到这个错误?

标签: dockermakefile

解决方案


推荐阅读