Java + Maven + MSSQL2022

Then it seems you need to install the jdbc driver in the container.

Which means if you want it to be persistent, you need it to be installed in the image.

How exactly do you create the container? Can you share the compose file and the devcontainer json maybe? Make sure there is no secret in the shared content. And follow the formatting guide to use code blocks: How to format your forum posts