How can I convert a production Linux server into a docker Image or container?

HOW TO -️ October 18, 2021

I've a production Ubuntu that contains a huge number of software and dependencies, I want to 'clone' that VPS into a Docker image to be able to replicate the same environment and distribute them in different servers.

Is that possible without any hack? If yes, what are the big lines to follow?


You shouldn't because containers are not lightweight VM and are not supposed to run multiples softwares within only one.