Setting up Kate with LSP server running in Docker

for anyone from future.
I was able to get it working the issue seems to be something with my docker image.

by looking through the code of lspcontainers.nvim i was able to get the docker cmd for how to setup the container

the following is my user server settings

{
    "servers": {
        "python": {
            "command": [
                "docker",
                "run",
                "-i",
                "--rm",
                "-v",
                "/home:/home",
                "docker.io/lspcontainers/python-lsp-server"
            ],
            "url": "https://github.com/python-lsp/python-lsp-server",
            "highlightingModeRegex": "^Python$",
            "settings": {
                "pylsp": {
                    "plugins": {
                        "jedi_completion": {
                            "enabled": true,
                            "include_params": true
                        },
                        "pycodestyle": {
                            "enabled": false
                        }
                    }
                }
            }
        }
    }
}

the docker containers provided by lspcontainers can be found here
https://github.com/lspcontainers/lspcontainers.nvim/blob/main/lua/lspcontainers/init.lua

I have not tested others but pylsp works in kate.

Also im not sure but i would suggest that anyone trying to do this, make sure you mount your project folder inside the container where it is on your host.
or you could do like what i did by just mounting your home directory to the container.