In spacy custom trianed model : Config Validation error ner -> incorrect_spans_key extra fields not permitted

  docker, docker-compose, nlp, python-3.x, spacy-3

I am running into the problem whenever I try to load custom trained NER model of spacy inside docker container.

I am using latest spacy version 3.0 and trained that NER model using CLI commands of spacy, first by converting Train data format into .spacy format

The error throws as following(You can check error in image as hyperlinked):

config validation error

My trained model file structure looks like this:
custom ner model structure

But while run that model without docker it works perfectly. What wrong I have done in this process. Plz help me to resolve the error.

Thank you in advance.

Source: Docker Questions