Comments (10)
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.
+1 to clear up orphan container left after each fig build && fig up -d
from compose.
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.
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.
I also agree that --rm
should be the default.
from compose.
I would argue that even --volumes
could be appropriate for a software that has its focus on devenvs.
from compose.
I also agree with --rm
by default or at least an option in the yml file to toggle the behavior.
from compose.
This helps a lot. #716
from compose.
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.
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)
- [BUG] docker-compose ps --format json HOT 1
- [BUG] `config --variables` lists broken variable names
- [BUG] Docker Compose Autocomplete does not work for filename compose.yml instead of docker-compose.yml HOT 1
- [BUG] YAML top-level name linter does not accept env variables HOT 1
- Add restart option "limited". HOT 1
- [BUG] Line wrapping issue typing long commands in bash (part 2) HOT 1
- [BUG] docker compose run trying to map service ports? HOT 2
- Support `bind-recursive` option for bind mounts
- [BUG] Inconsistent behavior of profiles and remove-orphans HOT 2
- Assign container name to /sys/class/net//ifalias in docker compose HOT 1
- Add warning when use `env_file` and `environments` at the same time HOT 2
- "unsupported opentelemetry exporter None" with "docker-compose up" HOT 9
- [BUG] Unable to access applicaton on port 8080 when using host network mode on Windows HOT 2
- How to append the already existing environment variable instead of overriding them HOT 4
- [BUG] docker-compose build is not caching layers HOT 5
- https://myactivity.google.co/
- [BUG] Why does `compose up` always recreate one-shot containers? HOT 6
- [BUG] Using docker-compose with Windows Containers and dockerfile_inline does not work (is ignored) HOT 1
- Docker compose config with profiles hangs indefinitely when combining "--no-interpolate" and "--resolve-image-digests" HOT 5
- [BUG] docker compose watch <service> ignores depdends_on definitions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compose.