Giter VIP home page Giter VIP logo

shrinkdockerformac's Introduction

shrink_docker_for_mac_hyperkit

shrink docker for mac hyperkit

it is problem of hyperkit not docker for mac

hyperkit didn't supperly shrink

if you need shrinks please use vmware and install vmwaretool even you can share the host filesystem to docker vm client and set docker lib fites to the host share path.

I try to shrink use du but the shrinked file didn't work。

by now

i think the only way to shrink is delete the Docker.qcow2 rebuild it and load older images and containers,like dump and load

so i write this python script

since docker export/import will lost containner's env and cann't restart containers, so commit to a new image and then start new containers depend it.

this script can restart container with current port but cann't resume the volumes

in order to avoid the unexpected i suggest do it manual

1 python shrink.py -t save

2 quit docker process and remove Docker.qcow2(rename to Docker.qcow2_back is better)

3 start docker process it will auto rebuild a new Docker.qcow2 file,wait it accomplish

4 python shrink.py -t load

5 remove the tmp file

shrinkdockerformac's People

Contributors

cclient avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sazo9

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.