Andrew Pruski handles an introductory question about containerization:
To build a custom Docker image we create a docker file with instructions in it.
For example, a really simple custom SQL Server 2019 Docker image can be built with:
Click through for the example Dockerfile, followed by instructions on how to build both locally and directly from GitHub.