How to use docker on existing local development project?

I’m exploring if docker is a viable option for us to move into. We have a couple of Drupal and Ruby on Rails projects. However, I like to start with Drupal 8 projects first. Once I have docker installed on my local machine and successfully run hello-world image, how do I go about configuring/creating new image that will allow me to work/import my existing Drupal 8 project into docker or make it into a docker compatible image so I can start developing locally? Links to documentation or step by step instruction is much appreciated.

Since no one is responding, I assumed this scenario is impossible or not recommended?