New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker for Mac: add page on disk space #6944
Conversation
The disk space usage of Docker on Mac has been difficult to manage and has confused lots of people, see docker/for-mac#371 This patch adds a top-level section to the Docker for Mac docs alongside networking which explains - where the space has gone - how to reclaim some of it In future I'd like to add more about why some systems use `Docker.raw` and some `Docker.qcow2` but we're in a transitional state at the moment. It'll be simpler to explain after the next stable version has been released. Signed-off-by: David Scott <dave.scott@docker.com>
Thanks for your work! I think this will help a lot. Do you think it would be useful to communicate this in the docker mac UI? optimal ✅ compatibility mode compatibility mode compatibility mode |
@gtardif - PTAL - thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a quick first glance; left some notes
``` | ||
then list containers with: | ||
```bash | ||
$ docker container ls -a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to use docker system df
instead of checking only containers and images; doing so also shows how much the actual use is, and how much is reclaimable https://docs.docker.com/engine/reference/commandline/system_df/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above. Thank you for the input!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also looks fine to me!
|
||
Note that other tools may display the space usage of the file incorrectly. | ||
|
||
## If the file is too big |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we mention the actual vs virtual size of the file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes good idea. It's mentioned further down but it would be good to bring it nearer the top since it's bound to be a frequent source of confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thaJeztah @djs55 - Thank you both for the input! Please see my latest updates to see if this is what you are looking for and if more is needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me!
@thaJeztah @djs55 - Thank you both for the input! Please see my latest updates to see if this is what you are looking for and if more is needed. |
Deploy preview for docsdocker ready! Built with commit 9aa8abe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go!
Merging this - will open up a separate PR for TOC update. Thank you @djs55 and @thaJeztah ! |
Proposed changes
The disk space usage of Docker on Mac has been difficult to manage and has confused lots of people, see
docker/for-mac#371
This patch adds a top-level section to the Docker for Mac docs alongside networking which explains
In future I'd like to add more about why some systems use
Docker.raw
and someDocker.qcow2
but we're in a transitional state at the moment. It'll be simpler to explain after the next stable version has been released.Related issues (optional)
Related to docker/for-mac#371