docker - 在 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
。给出绝对路径也不起作用。
任何想法为什么我看到这个错误?
解决方案
推荐阅读
- c - 如何使用递归函数在 C 中计算矩阵的行列式
- python - 解释这个帕斯卡算法的工作原理
- ios - Swift - 如何使用 UIGraphics 混合模式?
- python - 如何从 ConfigParser 中提取数据
- angular - 仅将行的选择限制为复选框,而不是角度 6 mat-table 中的整行
- memory - DMA 内存块不接受输入
- c - 编译器会覆盖手动分配的地址吗?(请同时查看代码)
- node.js - Docker - 节点,找不到 mysql 模块
- c# - 为什么我要使用这样的接口属性?
- python - python matplotlib:我需要从左到右更改xlabel位置