I just use a yaml LSP which will probably try to lookup the schema.org Containerfile format for this. I first noticed this recently when working on a Github Actions yaml file. Pretty nifty.
But a dockerfile is not yaml. do you mean for docker compose?
You’re right. I’m sure there is a containerfile lsp however.