Run docker container

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

docker load --input aware-knomivoicematcher-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
knomivoicematcher             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 Voice Matcher REST server inside the container:

docker run -it -p 8071:8071 --name knomivoicematcher knomivoicematcher

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

curl http://localhost:8071/nexavoice/version