Run Docker container¶
Use the following command to load the Docker image from the tar.gz file:
docker load --input aware-knomidocumentanalyzer-docker-ubuntu.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
knomidocumentanalyzer latest a5183477a249 18 hours ago 1.5GB
ubuntu
Start the container as follows. It will create and start the container as well as start the Knomi Document Analyzer rest server inside the container:
docker run -it -p 8088:8088 --name knomidocumentanalyzer knomidocumentanalyzer
You can query the “/version” endpoint from the command line of the Docker host to ensure it is running correctly:
curl http://localhost:8088/documentAnalyzer/version