dockur / windows

Windows inside a Docker container.
MIT License
29.23k stars 1.99k forks source link

[Question]: how to clone from windows template #737

Closed LinkCaau closed 1 month ago

LinkCaau commented 2 months ago

Is your question not already answered in the FAQ?

Is this a general question and not a technical issue?

Question

I have installed a Windows system and set up some essential software. I want to use this Windows as a template. How do I export and use this template to create multiple containers?

kroese commented 1 month ago

Inside the /storage volume there is a file called data.img that contains the whole harddisk.

So the only thing you need to do for instant installations is to provide an existing /storage volume, which can be binded to a local folder like this:

volumes:
  - /example/folder:/storage

So for backing up or restoring machines, all you need to do is make a copy of /example/folder. And if you have multiple folders, you can easily switch between them by changing that line in your compose file.