This is a reasonable point, and something that is being worked on. I definitely think Docker
can provide LSP servers as necessary, we're just not quite there. This is something that I'm interested in working on, though I'm not the only one:
https://github.com/emacs-lsp/lsp-dockerFor the most part, latest version linting is good enough for me, currently.