Run Docker container
Use the following command to load the Docker image from the tar.gz file:
docker load --input aware-knomifaceliveness-docker-centos8.tar.gz
Run the Docker images command to verify that a docker image was created:
bash-4.2$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
knomifaceliveness_tagname latest a5183477a249 18 hours ago 1.5GB
centos
Start the container as follows. It will create and start the container as well as start the Knomi Face Liveness REST server inside the container:
docker run -it -p 8086:8086 --name knomifaceliveness knomifaceliveness
You can query the “/version” endpoint from the command line of the Docker host to ensure it is running correctly:
curl http://localhost.com:8086/faceliveness/version