GithubHelp home page GithubHelp logo

Epic: Use less disk space about compose HOT 10 CLOSED

docker avatar docker commented on July 28, 2024
Epic: Use less disk space

from compose.

Comments (10)

bfirsh avatar bfirsh commented on July 28, 2024

There is also a wider discussion to have about how Docker can be more disk-friendly. Tools to clear up old containers and images would be handy regardless.

from compose.

josephpage avatar josephpage commented on July 28, 2024

+1 to clear up orphan container left after each fig build && fig up -d

from compose.

dnephin avatar dnephin commented on July 28, 2024

The main issue I've run into here is the second point. fig stop and fig rm don't remove the one_off containers created by fig run.

A -rm by defualt sounds appropriate.

from compose.

thaJeztah avatar thaJeztah commented on July 28, 2024

remove containers by default if they don't have volumes?

That option sounds a bit scary to me; containers without volumes may also contain information that should not be thrown away without warning.

I agree with removing the one-off containers, I think in general, those will not contain data that should be preserved, so --rm by default sounds okay.

from compose.

k4nar avatar k4nar commented on July 28, 2024

I also agree that --rm should be the default.

from compose.

kalmi avatar kalmi commented on July 28, 2024

I would argue that even --volumes could be appropriate for a software that has its focus on devenvs.

from compose.

hugochinchilla avatar hugochinchilla commented on July 28, 2024

I also agree with --rm by default or at least an option in the yml file to toggle the behavior.

from compose.

bfirsh avatar bfirsh commented on July 28, 2024

This helps a lot. #716

from compose.

dnephin avatar dnephin commented on July 28, 2024

I created this tool for doing cleanup https://github.com/yelp/docker-custodian

I think removing containers by default might be assuming too much about how compose is being used. Especially now that we have start-recreate which is able to start containers again.

@bfirsh do you think there is still work to be done here on the compose side?

from compose.

shin- avatar shin- commented on July 28, 2024

With docker-compose down and docker system prune now, I thin we're in a good place regarding managing disk space.

from compose.

Related Issues (20)

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.