# Help with Docker Medcat service

**URL:** <https://discourse.cogstack.org/t/help-with-docker-medcat-service/98>\
**Category:** MedCAT\
**Created:** [October 17, 2022, 11:04pm UTC](https://discourse.cogstack.org/t/help-with-docker-medcat-service/98 "2022-10-17T23:04:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jzhn](https://avatars.discourse-cdn.com/v4/letter/j/6bbea6/32.png) [@jzhn](https://discourse.cogstack.org/u/jzhn)\
**Post date:** [October 17, 2022, 11:04pm UTC](https://discourse.cogstack.org/t/help-with-docker-medcat-service/98/1 "2022-10-17T23:04:18Z")

</div>

Hey - trying to run MedCAT service in Docker but throwing an error.

My process so far:  
(1) Image downloaded from cogstacksystems/medcat-service  
(2) Run container directly using this image  
(installed curl as command not available)  
(3) curl -XGET [http://localhost:5000/api/info](http://localhost:5000/api/info)  
 → get an internal server error

Log shows the following:  
File “/cat/medcat\_service/nlp\_processor/medcat\_processor.py”, line 216, in \_create\_cat  
raise ValueError(“Vocabulary (env: APP\_MODEL\_VOCAB\_PATH) not specified”)  
ValueError: Vocabulary (env: APP\_MODEL\_VOCAB\_PATH) not specified

Is there a step I’m missing to define these?  
Many thanks for help!

---

<div class="post-metadata">

**Author:** ![vladd](https://avatars.discourse-cdn.com/v4/letter/v/8c91f0/32.png) [@vladd](https://discourse.cogstack.org/u/vladd)\
**Post date:** [October 19, 2022, 8:31am UTC](https://discourse.cogstack.org/t/help-with-docker-medcat-service/98/2 "2022-10-19T08:31:50Z")

</div>

Hello,

I’ve pushed some fixes that have addressed this issue after the 1.4.0 upgrade.  
Re-pull the latest image or the release image tagged “0.3.2”

---

<div class="post-metadata">

**Author:** ![jzhn](https://avatars.discourse-cdn.com/v4/letter/j/6bbea6/32.png) [@jzhn](https://discourse.cogstack.org/u/jzhn)\
**Post date:** [October 21, 2022, 9:40pm UTC](https://discourse.cogstack.org/t/help-with-docker-medcat-service/98/3 "2022-10-21T21:40:34Z")

</div>

Thanks for this update!

I’m now using 0.3.2.

Unfortunately I’m still getting the error with the steps above.

This is the full log: [Starting up Flask app using gunicorn server ...[2022-10-21 21:33:28 +0000] [8] - Pastebin.com](https://pastebin.com/sddqYjRV)

I get this prior to the error “MedCatProcessor: APP\_MEDCAT\_MODEL\_PACK not set, skipping…”  
Is there a step I’m missing here, outside of loading the Docker image?

Let me know if I can help with any other information

---

<div class="post-metadata">

**Author:** ![vladd](https://avatars.discourse-cdn.com/v4/letter/v/8c91f0/32.png) [@vladd](https://discourse.cogstack.org/u/vladd)\
**Post date:** [October 21, 2022, 11:26pm UTC](https://discourse.cogstack.org/t/help-with-docker-medcat-service/98/4 "2022-10-21T23:26:34Z")

</div>

Hello,

It seems like no models are being loaded in this case, did you execute the " ./models/download\_medmen.sh" script (mentioned in the readme) ?

---

<div class="post-metadata">

**Author:** ![jzhn](https://avatars.discourse-cdn.com/v4/letter/j/6bbea6/32.png) [@jzhn](https://discourse.cogstack.org/u/jzhn)\
**Post date:** [October 22, 2022, 12:18pm UTC](https://discourse.cogstack.org/t/help-with-docker-medcat-service/98/5 "2022-10-22T12:18:51Z")

</div>

Figured out. Cloned the git and ran docker/run\_example\_medmen.sh which handled the model download and image creation.  
Thanks for help!  
BW

~~Apologies - I may need an “explain like I’m 5” on this as not that experienced with Docker.~~

~~I’ve pulled and loaded latest from Dockerhub and tried to execute this script from within the container - but the script isn’t present in the container.~~

~~Presumably then, I need to execute the script through creating a custom image?~~  
~~At what point do I execute the script?~~  
~~And do I need to edit any of the Docker files?~~

~~Thanks again in advance.~~
