Skip to content

Separate docker images and containers data to different files/folders #489

@C-h-e-r-r-y

Description

@C-h-e-r-r-y

Tell us about your request
For now all docker data are stored into %USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx. File ext4.vhdx can become very large due too many images or too many container runs. The last one is very important during development when I need to build a new container every time.

From other side (and as I understand) images/layers are very infrequent data and are stored in gz archives. So they can be stored in HDD - here we save space and lifetime for SSD.

Which service(s) is this request for?
?

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
I want start my docker containers quicky from SSD but store cold gz archives into slow HDD drive (where sequential speed is high).

Are you currently working around the issue?
No because %USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx holds all data and I can not split it

Additional context
Original feature request was created for wsl, but they redirected me to docker/for-win and it redirected me to this repo for feature request

Updated
Ideally all parts mentioned in docker system df should have separated storage:

  • Images
  • Containers
  • Local Volumes
  • Build Cache

The last one can grow large during development

Metadata

Metadata

Assignees

Labels

community_newNew idea raised by a community contributor

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions