I am running a MS SQL Server in a Docker container, which I create and execute via a Docker compose file. To get access to the databases I use Docker Volumes. But when I create a database, I can’t find the database at the data path on the local host. What am I doing wrong?
Excerpt from docker-compose.yml:
sql_server: image: mcr.microsoft.com/mssql/server:2019-latest hostname: sql_server container_name: sql_server ports: - "1433:1433" environment: - ACCEPT_EULA=Y - MSSQL_SA_PASSWORD=Password123! volumes: - ./data:/mssqldata networks: - localhost