dockur / windows

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

[Feature]: Thin provisioning disks #911

Closed EHRETic closed 1 hour ago

EHRETic commented 2 hours ago

Is your proposal related to a problem?

The only problem is backup size because of big Docker volumes 😊 (probably, this feature would be nice on Windows & mac)

Describe the solution you'd like.

The ability to choose between thin provisioning disks and fat ones at VM creation

Describe alternatives you've considered.

Don't know if there is any alternative to consider, either it is feasible, or it is not! πŸ˜‰

Worth a try, thanks in advance

Additional context

An example : 10 GB used but on server's disk, it is taking 256GB :

Capture d’écran 2024-11-18 aΜ€ 18 27 40
kroese commented 2 hours ago

You can do this already:

environment:
  DISK_TYPE: "qcow2"
EHRETic commented 2 hours ago

You can do this already:

environment:
  DISK_TYPE: "qcow2"

Did I miss this? If yes, very sorry!

kroese commented 2 hours ago

No problem, its not written in the FAQ.

EHRETic commented 2 hours ago

Will be valid for others then, thanks a lot! πŸ˜‰πŸ‘Œ

EHRETic commented 2 hours ago

Extra question, is it valid for several disks?

 environment:
   DISK_TYPE: "qcow2"
   DISK2_TYPE: "qcow2"`

etc...

kroese commented 1 hour ago

No.. you can specify only a single type for all disks currently

EHRETic commented 1 hour ago

No.. you can specify only a single type for all disks currently

That is fine for me πŸ‘Œ