Run Docker container¶
Use the following command to load the Docker image from the tar.gz file:
docker load --input aware-knomifaceanalyzer-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
knomifaceanalyzer 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 Analyzer rest server inside the container:
docker run -it -p 8080:8080 --name knomifaceanalyzer knomifaceanalyzer
You can query the “/version” endpoint from the command line of the Docker host to ensure it is running correctly:
curl http://localhost:8080/preface/version