This post will walk you through setting file permissions on database files copied into a container. The SQL Server process
sqlservrrunning in containers runs as the non-privileged user
mssql. The appropriate permissions on files are needed, so the SQL Server process has the proper access to any database files, log files, and backup files.
Click through for the process.