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

Anonymous volumes are created using docker-compose.yml #21065

Open
abdeldjalil-fellah opened this issue Oct 19, 2024 · 2 comments
Open

Anonymous volumes are created using docker-compose.yml #21065

abdeldjalil-fellah opened this issue Oct 19, 2024 · 2 comments
Labels
help wanted The issues that is valid but needs help from community

Comments

@abdeldjalil-fellah
Copy link

Issue: anonymous volumes are created by these services using docker-compose.yml

  • portal
    • /var/cache/nginx
    • /var/log/nginx
    • /run
  • log
    • /etc/logrotate.d
    • /run
  • nginx
    • /var/cache/nginx
    • /var/log/nginx
    • /run
  • registryctl
    • /var/lib/registry

Solution:

  • Remove VOLUME statement from Dockerfile
  • Or: add bind mounts in docker-compose.yml
@wy65701436
Copy link
Contributor

Could you clarify the impact of those volumes? These are required directories for Nginx, syslog, and the registry. What concerns do you have regarding them?

@abdeldjalil-fellah
Copy link
Author

Every time you do "docker compose up -d" anonymous volumes are created.
They will accumulate in /var/lib/docker/volumes and eventually consume a significant amount of disk space.

image

@wy65701436 wy65701436 self-assigned this Oct 21, 2024
@wy65701436 wy65701436 added the help wanted The issues that is valid but needs help from community label Oct 21, 2024
@wy65701436 wy65701436 removed their assignment Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted The issues that is valid but needs help from community
Projects
None yet
Development

No branches or pull requests

2 participants