Comments (5)
I don't think this is something I can fix on my end. This is just the way docker works (it keeps all the older versions of images even if you don't use those). You can clean the system up by using docker system prune
periodically which should remove unused data. Depending on your setup you can opt into running that command periodically with some cron or run it on every deploy but usually running that once in a while is enough
I'm also working on a side project that will allow using single image to run and auto-update db1000n in different environments (including containers) but it's not ready yet
from db1000n.
As for updates: docker tracks the container lifetime by existance of the process with PID 1. Any kind of version update requires to restart the process in order to update the code and the new process won't get the same id as old one. In order to get around that you need to use some external process as the controller and that's what I'm planning to do
from db1000n.
in different environments
@arriven what do you mean by this? Sounds cool, however AFAIK it's already possible to update db1000n without killing the container.
Forgot to say: thank you for the hint with prune
)
But maybe there is a way to minimize the layer sizes that changes on every code update. I will try to investigate it in a week or two.
from db1000n.
AFAIR, the only layer that changes between versions is the one where the executable resides and I doubt it'll be possible to cache that
from db1000n.
Okay, I'll close this for how then. Thank you
from db1000n.
Related Issues (20)
- Things to optimize - performance HOT 10
- Reference to db1000nX100 project HOT 1
- Error when pulling docker image HOT 1
- vpn load balancing script
- Simplify logs HOT 8
- Can you compiling file or opkg OpenWRT for MIPS, MIPSBE, MMIPS etc? ;) HOT 14
- Trojan HOT 3
- Scale up db1000n automatically in order to utilize all available system resources HOT 2
- Can you add limit download/upload speed? HOT 3
- Add more stats (cpu/memory load, amount of open connections, etc.)
- oom killed HOT 23
- prometheus.go:298: Can't push metrics to gateway HOT 2
- ERROR: HostClient can't follow redirects to a different protocol, please use Client instead HOT 1
- Config path is not available anymore for Digital Ocean deployment HOT 1
- Add new sites? HOT 2
- Non-cumulative stats HOT 1
- Build unsuccesful by go install HOT 4
- . HOT 2
- warn failed to fetch config {"path": "", "error": "open : no such file or directory"} ----how do I fix this?
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 db1000n.