Dockerize existing machine

Would there possibly be a way to dockerize an existing machine?
I setup a hairy install a while back and will waste days getting it running again unless i can simply dockerize that system somehow and run it elsewhere.