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 195 forks source link

How to run in docker? #64

Closed jimmy-walker closed 3 years ago

jimmy-walker commented 5 years ago

I use the docker way of installation. But when I run the command docker run -d -p 8500:8500 tobegit3hub/simple_tensorflow_serving, I donnot know how to pass the set simple_tensorflow_serving --model_base_path="./models/tensorflow_template_application_model" to container. Appreciate for any help.

wyqnumber commented 5 years ago

+1

wzl789139 commented 5 years ago

$docker exec -it containerID bash

use this command ,you can enter the container,then input the command to run

tobegit3hub commented 3 years ago

You can use more docker parameters like -v to mount model files into the docker container.

For testing, I always run with docker run -it -p 8500:8500 -v /:/host tobegit3hub/simple_tensorflow_serving bash so that I can run the server by myself and read any model files in the host server.