-
Notifications
You must be signed in to change notification settings - Fork 2
/
commands.txt
28 lines (17 loc) · 1.19 KB
/
commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
TF-serving:
# Download the TensorFlow Serving Docker image and repo
docker pull tensorflow/serving
# Start TensorFlow Serving container and open the REST API port
docker run -p 8501:8501 --name tfserving_classifier --mount type=bind,source=/Users/pachaar/Eigene/MLOps_workshop/models/,target=/models/img_classifier -e MODEL_NAME=img_classifier -t tensorflow/serving
____________________________________________________________________________________________________________________________________
Remove all Stopped container
sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm
____________________________________________________________________________________________________________________________________
# Login inside running container:
docker exec -it container_id /bin/bash
____________________________________________________________________________________________________________________________________
# create docker image from docker file
docker build -t mlops_espol .
____________________________________________________________________________________________________________________________________
# run container os mlops_espol
docker build -p 8080:8080 mlops_espol