Reputation: 1587
I'm new to Docker, but I want to make an "image" for docker of my current server I have running on Azure. Now, I have readed the documentation, but that always tells me that I can make a new image... I want to image my current server to a docker file.
How can I do this? Like let's say, I have a linux server running on Azure with all my configuration settings applied on it. How can I do this? I really need this fast... I can test the created docker image on a computer of someone else, so how can I do this? Or what solution would that be?
Upvotes: 1
Views: 160
Reputation: 13954
For now, there is no way to make a docker image from an existing server.
If you want to build your self docker image, you should build docker image with docker file.
Or download an existing docker image, then do some change to it and save it as new image.
Hope this helps.
Upvotes: 0
Reputation: 72151
You cannot convert your existing Linux box to a docker image. This is not how docker Works.
You can take a snapshot of your VM and créate another identical vm, not container.
Upvotes: 1