Self hosted registry on windows server 2019

Hi
I am trying to set up a self hosted register on windows server 2019
I have installed docker but when I run the command
docker run --rm -it -p 5000:5000 registry
I get this error
docker: no matching manifest for windows/amd64 10.0.17763 in the manifest list entries.

Can some one please tell me what is wrong?