-
Notifications
You must be signed in to change notification settings - Fork 764
Description
OS: Windows 10 Pro Version 1709 OS Build 16299.192
Docker: Docker Containers Version 17.12.0-ce-win47 (15139) Channel stable
I have a database where the entire mssql folder it contained inside a docker volume (this is for dev so having all those files someplace I can access is useful). Lately I've had an issue where once the mdf files are created after creating a new DB, they cannot increase the size of the file from when it was created. I tried uninstalling docker and re installing and using a different empty folder for the volume but still no luck. When I change it so that all the database files are contained inside the container everything seems to work fine. Here is the command I use to create the container:
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=Password1" -e "MSSQL_PID=Developer" -p 1433:1433 -v /C/Users/ranger1230/Documents/SQLDataBase:/var/opt/mssql
-d microsoft/mssql-server-linux:2017-latest
And here is the error message I receive when I try to do something that will require the database files to grow (yes Autogrow is enabled):
TITLE: Microsoft SQL Server Management Studio
Restore of database 'Episerver' failed. (Microsoft.SqlServer.Management.RelationalEngineTasks)
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: MODIFY FILE encountered operating system error 31(A device attached to the system is not functioning.) while attempting to expand the physical file '/var/opt/mssql/data/Episerver.mdf'. (Microsoft.SqlServer.SmoExtended)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=13.0.16106.4+((SSMS_Rel_16_5).170125-2137)&LinkId=20476
BUTTONS: