Unable to complete building of OCR4All container in Docker in Windows 10 Professional

Hi,

I am a Docker newbie. I am unable to complete the building of an OCR4All container in Docker (V. 27.5.1, build 9f9e405) in Windows 10 Professional. Windows Power Shell locks on the OCR4All build script…

I have installed and loaded Apache (V. 2.4.63.0), Tomcat (10.1) and Docker which are required to run OCR4All. As specified in the OCR4All Guide I have opened Windows Power Shell and run the following command to build the OCR4All Docker container:

docker run -p 1476:8080 --name ocr4all -v C:\Users\ybrekag\ocr4all\data:/var/ocr4all/data -v C:\Users\ybrekag\ocr4all\models:/var/ocr4all/models/custom -it uniwuezpd/ocr4all

However, this command locks at the following code: “04-Mar-2025 23:59:35.561 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [7359] milliseconds.” The OCR4All Docker container is only partially built and will not run.When I try to load it into Chrome with the Windows Power Shell command, “docker start -ia ocr4all” I get the following error message:

Error response from daemon: No such container: –ia
ocr4all
Error: failed to start containers: –ia

The Docker log for the OCR4All container records the following (Apache/Tomcat?) error:

2025-03-11 05:41:36 11-Mar-2025 09:41:36.046 INFO [Thread-5] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
2025-03-11 05:41:36 11-Mar-2025 09:41:36.059 INFO [Thread-5] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
2025-03-11 05:41:36 11-Mar-2025 09:41:36.134 INFO [Thread-5] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“http-nio-8080”]
2025-03-11 05:41:36 11-Mar-2025 09:41:36.159 INFO [Thread-5] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler [“http-nio-8080”]

When I first installed Apache/Tomcat/Docker/OCR4All I was able to build the Docker container and access OCR4all on the Internet at: http://localhost:1476/ocr4all/. However, at some point shortly thereafter I lost this ability. I tried to correct my problem by uninstalling Docker with Revo Uninstaller and then reinstalling Docker. This failed to resolve my problem.

Since installing Apache/Tomcat/Docker/OCR4All I have had to install several more software programs I need for AI OCR: Batch Image Merger, Batch Image Creator, PDF Creator, g_vim 9.1, g_vim easy 9.1, Image Combiner, PDF Architect, All File to File Converter 9000, NotePad++, ScanTailer and Irfan View 64. I doubt these programs are causing my problem, but I mention them just to be complete.

I have not made any changes to my Internet settings since installing Apache/Tomcat/OCR4all. However, Windows 10 did automatically install an update which might have reset some relevant parameters on my PC. I also doubt that my PC is infected with malware. I am using Bitdefender Total Security which has been very successful at protecting my PC.

I do use Private Internet Access (PIA) VPN for privacy, but the Docker OCR4All container fails to be built whether PIA is connected or disconnected. The Docker container log for OCR4All is unchanged whether PIA I have connected or disconnected.

I’ve tried researching this problem with Google, but what I find is quite beyond my level of computer/programming expertise. I have no familiarity with Apache, Tomcat or Docker. I just want to use OCR4All which depends on the successful installation and running of the latter three programs.

So, I would be very grateful to any forum member who could suggest what either my next steps should be or a solution to my problem.

1 Like

Please, format your post according to the following guide: How to format your forum posts
In short: please, use </> button to share codes, terminal outputs, error messages or anything that can contain special characters which would be interpreted by the MarkDown filter. Use the preview feature to make sure your text is formatted as you would expect it and check your post after you have sent it so you can still fix it.

Example code block:

```
echo "I am a code."
echo "An athletic one, and I wanna run."
```

After fixing your post, please send a new comment so people are notified about the fixed content.


I have now done some more research on my problem. II discovered that two software programs were listening to port 8080 so I stopped them loading at Windows start up. Unfortunately, this did not solve my problem

Let’s clarify wording first. When building a container, you use a Dockerfile and docker build to create a container image. You run a container with docker run or compose. Well, composecan also integrate a build step.

I don`t understand this. How did you do that? You installed those on host and then built the image? But building an image usually does not require anything except Docker. And when using containers, you would not install something on host (except Docker), but use multiple containers.

The Quickstart of OCR4all seems very simple (link).

My mistake. I’m wholly new to Docker. When I first installed Docker I must have read something that suggested I needed to install Apache and Tomcat if I wanted to use Docker with OCR4All. I now realize I just need Docker alone. I’ve now uninstalled Tomcat. For some reason I can’t uninstall Apache even though I tried all the command line scripts that are supposed to uninstall it. I also uninstalled Docker and then reinstalled it.

I then again tired to create the OCR4All Docker container, but I still get the same error message:

14-Mar-2025 10:24:11.604 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [6478] milliseconds
^C14-Mar-2025 10:30:32.553 INFO [Thread-5] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
14-Mar-2025 10:30:32.570 INFO [Thread-5] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
14-Mar-2025 10:30:32.611 INFO [Thread-5] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“http-nio-8080”]
14-Mar-2025 10:30:32.619 INFO [Thread-5] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler [“http-nio-8080”]

If you have any suggestions as to why the Apache Catalina service keeps stopping I would be most grateful.

Thanks for you comments. I much appreciate them.