Trying to get docker working inside nvim lsp

I have been trying to get docker working with nvims LSP. Since nvim-lsp to my knowledge does not support other modes than I used studio mode.
I used an sh file to be able to execute the docker commands.
This comes as an result of the docker container crashing.
But the only error I see in the logs is a % sign.
So my question is: Is there any one who knows how I can resolve this issue or otherwise get my lsp servers to work with docker?

Maybe check how this plguin does it GitHub - lspcontainers/lspcontainers.nvim: Neovim plugin for lspcontainers.