docker映像中的覆盖路径
我有一个docker映像,我想更改它的默认配置文件 问题是这个配置文件包含图像中包含的程序的路径,我不确定如何修改它docker映像中的覆盖路径,docker,Docker,我有一个docker映像,我想更改它的默认配置文件 问题是这个配置文件包含图像中包含的程序的路径,我不确定如何修改它 docker run --rm -u `id -u \`whoami\`` -v /my/path/file:/data/ -t docker/program -i input -r -o output -c config.file config.file program=/path/to/program/是否尝试使用特定于环境的配置文件?好奇你到底想做什么——有没有可能把/p
docker run --rm -u `id -u \`whoami\`` -v /my/path/file:/data/ -t docker/program -i input -r -o output -c config.file
config.file
program=/path/to/program/是否尝试使用特定于环境的配置文件?好奇你到底想做什么——有没有可能把
/path/to/program/
作为一个环境变量来传递呢?问题是这个程序使用的依赖项不是安装在我的计算机上,而是安装在docker映像中。