Docker. Best way to save config?

Thank you. I wrote a How To in case it's useful for anyone.