Freedom comes from having a community and the resultant government that is uninterested in your private life.
A government that does not care what you do in your bedroom and is indifferent to what books and movies you enjoy.
Freedom does not arise from an individual being able to hide 'offences' from authorities, it arises from the community not wanting to make a person's personal life subject to moralistic oppression.
In western democracies the overwhelming source of oppression comes from criminals. And only minor secondary oppression from inaccurate legal attention.
Proper means of detecting offences and freeing the legal system from haphazard targeting of the innocent should be welcomed.
That's why I support centralised databases of proper authentication such as finger prints, DNA and iris scans.
Sunday, November 6, 2016
Wednesday, October 26, 2016
Truncate or empty all docker container logs
After a while of dockering you'll have too much in your logs. This command:
docker-compose logs -f
Will take ages to show anything recent. So you'll want to truncate those logs.
First run docker info to find where your docker logs are kept. Example:
~/docker $ docker info
Containers: 68
Running: 7
Paused: 0
....
....
Docker Root Dir: /var/lib/docker
The docker root dir: is where you'll search. Alternatively, use this command to see the docker root dir:
docker info | grep "Docker Root Dir: " | awk '{print $NF}'
This command should truncate all the docker logs to zero length.
sudo truncate -s 0 $(sudo find /var/lib/docker/containers/ -name "*-json.log")
To view the total bytes used by logs files:
sudo find /var/lib/docker/containers/ -name "*-json.log" -exec du -ch {} + | grep total$
Subscribe to:
Posts (Atom)