Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker files become very large #50

Open
beshoo opened this issue Jul 23, 2022 · 1 comment
Open

Docker files become very large #50

beshoo opened this issue Jul 23, 2022 · 1 comment

Comments

@beshoo
Copy link

beshoo commented Jul 23, 2022

Hi.

I set the tor to fork 50 processes so I can have 50 open ports.
The problem, the docker log file takes more than 80% of the server space! the total space is 917G, and the docker files are around 700 GB!
WAW. ps the docker has only once running container. which is rotating-proxy
even cleaning Docker dos not help. the only way to reclaim the wasting space is by uninstalling the docker and deleting the docker folder altogether.

Please advice

@stevet11
Copy link

This is a docker issue. See https://docs.docker.com/engine/logging/configure/ for possible fixes.

You can change the docker daemon - system wide, or configure it per container.

Configuring for one service in docker-compose.yaml:

services:
  proxy:
    ... existing lines ...
    logging:
    driver: "json-file"
      options:
        max-file: "5"
        max-size: "16m"

This would have a log for your container with max size 16MB. Having huge log files fills up the drive, and makes docker-compose logs scroll for awhile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants