Andrew Pruski makes it easy to launch a fully-featured Docker container running SQL Server:
The solution here is to create a custom image with the volume created and permissions set.
But wouldn’t it be easier to just have to run one command to spin up a custom 2019 image, with volumes created and permissions set?
Enter Docker Compose.
Andrew has a GitHub repo with everything set up and includes plenty of screenshots to demonstrate.