Comments (2)
That's because the rippled process also reports logs to stdout, so you should also clean the docker container stdout logs ;)
To delete the logs on a Docker for Linux install, you can run the following for a single container:
echo "" > $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)
Note that this requires root, and I do not recommend this. You could potentially corrupt the logfile if you null the file in the middle of docker writing a log to the same file. Instead you should configure docker to rotate the logs.
Lastly, you can configure docker to automatically rotate logs with the following in an /etc/docker/daemon.json file:
{
"log-driver": "json-file",
"log-opts": {"max-size": "10m", "max-file": "3"}
}
That allows docker to keep up to 3 log files per container, with each file limited to 10 megs (so a limit between 20 and 30 megs of logs per container). You will need to run a systemctl reload docker to apply those changes. And these changes are the defaults for any newly created container, they do not apply to already created containers. You will need to remove and recreate any existing containers to have these settings apply.
from docker-rippled.
For reference, if you delete the Ripple container,
/dev/mapper/centos-root 50G 8.1G 42G 17% /
As shown above, we were able to confirm that the capacity was reduced.
from docker-rippled.
Related Issues (16)
- Startup param `--net` is depricated HOT 1
- No ledger found HOT 1
- Allow only `rippled.cfg` to be supplied HOT 1
- Failed go/build
- why it is so slow to sync Ripple Node ??? HOT 4
- The changes to `entrypoint.sh` are not reflected in the 1.11.0 image HOT 1
- I want to make an RPC call with Postman. please help me~! HOT 5
- "validated": false?? HOT 5
- tx_blob data question HOT 2
- Dear developer, please help me! HOT 13
- The TX that was viewed just a moment ago cannot be viewed. HOT 2
- RippledNotInitializedError: Rippled not initialized HOT 1
- Submitting a transaction gives amendmentBlocked HOT 5
- Mapping config directory on Centos
- setup mainnet testnet 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 docker-rippled.