Build docker image and run it

Use the following command to load the Docker image from the tar.gz file:

docker load --input aware-knomifacematcher-docker-centos8.tar.gz

Run the Docker images command to verify that a docker image with repository name knomifacematcher_tagname was created:

bash-4.2$ docker images
REPOSITORY                     TAG       IMAGE ID       CREATED        SIZE
knomifacematcher               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 8081:8081 --name knomifacematcher knomifacematcher_tagname

You can query the “/version” endpoint from the command line of the Docker host to ensure it is running correctly:

curl http://localhost:8081/facematcher/version