Coder Social home page Coder Social logo

desktop-reclaim-space's Introduction

desktop-reclaim-space

A simple tool to reclaim space inside the Docker Desktop VM.

Before using:

$ docker system prune

To use:

$ docker run --privileged --pid=host docker/desktop-reclaim-space

On Mac using a Docker.raw, the effect should be instant. To see the true size of the Docker.raw use:

$ cd ~/Library/Containers/com.docker.docker/Data/vms/0/data
$ ls -klsh Docker.raw
2333548 -rw-r--r--@ 1 username  staff    64G Dec 13 17:42 Docker.raw

where the number 2333548 is the disk usage in KB, while 64G is the maximum potential disk size.

On Mac using a Docker.qcow2, there is a background compaction process which may take several minutes to complete.

desktop-reclaim-space's People

Contributors

djs55 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

desktop-reclaim-space's Issues

ARM / Apple Silicon Support

It looks like justincormack/nsenter1 has a linux/arm64 target, so supporting Apple Silicon should be as simple as rebuilding and republishing this with linux/arm64 as well.

Current output on an M1 Mac:

$ docker run --privileged --pid=host --rm docker/desktop-reclaim-space
Unable to find image 'docker/desktop-reclaim-space:latest' locally
latest: Pulling from docker/desktop-reclaim-space
5bc638ae6f98: Pull complete
Digest: sha256:8b26e45c51632fd78131f3bddca76122bebc1dd8376f16dd26f769c7f33121fd
Status: Downloaded newer image for docker/desktop-reclaim-space:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
setns:mnt: Invalid argument

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.