Can on premises servers image be used as docker image.?

I have been working with docker from few days. Its really a good experience. As a part of my new assignment I been installing and creating an environment similar to on premises server, which seems to be very complicated. Is there any way that I can somehow take a image of the server and use it as docker image?

If at all its Yes? Please be kind enough to explain how?

Eagerly waiting
Sampada Jain

Google is your friend