tobegit3hub / simple_tensorflow_serving

Generic and easy-to-use serving service for machine learning models
https://stfs.readthedocs.io
Apache License 2.0
757 stars 192 forks source link

docker run with models_config.json #88

Closed zhoujiang2013 closed 3 years ago

zhoujiang2013 commented 3 years ago

how can i use simple_tensorflow_serving like tensorflow serving, docker run with models_config.json

docker run -d -p 8500:8500 -v /root/save_path:/root/save_path tobegit3hub/simple_tensorflow_serving --model_config_file="/root/save_path/models_config.json"

i got the error:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"--model_config_file=/root/save_path/models_config.json\": stat --model_config_file=/root/save_path/models_config.json: no such file or directory": unknown.

tobegit3hub commented 3 years ago

@zhoujiang2013 You can mount the config file in the docker container with docker run -v.