Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find config file when run picfit image from docker hub #165

Closed
windy-itus opened this issue Feb 18, 2023 · 1 comment
Closed

Can't find config file when run picfit image from docker hub #165

windy-itus opened this issue Feb 18, 2023 · 1 comment

Comments

@windy-itus
Copy link

windy-itus commented Feb 18, 2023

I tried picfit service from docker hub with command docker pull thoas/picfit:0.9.0
I set the environment variable PICFIT_CONFIG_PATH.
Then I run
sudo docker run -p 3001:3001 -v /path/to/config.json:/app/config.json thoas/picfit:0.9.0
or
sudo docker run -p 3001:3001 thoas/picfit:0.9.0
but I get Cannot find configuration file error.
I have to how to run picfit service successfully.
Thank you very much!

@windy-itus windy-itus changed the title Can't find config file when run picfit image with docker run command Can't find config file when run picfit image from docker hub Feb 18, 2023
@thoas
Copy link
Owner

thoas commented Jul 3, 2023

hi @windy-itus, you need to set the PICFIT_CONFIG_PATH, like so:

 sudo docker run -p 3001:3001 -v /path/to/config.json:/app/config.json -e "PICFIT_CONFIG_PATH=/app/config.json" thoas/picfit:0.9.0

@thoas thoas closed this as completed Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants