Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
docker映像中的覆盖路径_Docker - Fatal编程技术网

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映像,我想更改它的默认配置文件

问题是这个配置文件包含图像中包含的程序的路径,我不确定如何修改它

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映像中。