Skip to content Skip to sidebar Skip to footer

Cant Find File When Using Docker Containers

I have an application which reads configuration file: config.read('/data123/config/conf.ini') The file conf.ini exists in /data123/config/ When I'm running my application from com

Solution 1:

run your docker with this command:

sudo docker run -it -v path_to_file_you_want_to_work_with:/app/data123/config/ your_docker_name

and the container will run and load the config file you supply at run time

Post a Comment for "Cant Find File When Using Docker Containers"