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
Logging:driver flag is not respected #8578
Comments
Hi. The reason you see this distinct behaviour is because Same applies when you use
using |
I'm not sure I follow that last bit. Are you saying that is a workaround or that I'd love to start using |
Sorry for the technical details :P |
Interesting to know what is going on but the end user "what do I do" summary would also be super helpful if there is one 😄 |
while docker-compose ignore logs on So, "works as expected" with existing options. If you want to mute a service, you can use |
So there wouldn't be a way to specify this in the compose file for a container anymore? |
We probably could introduce a new (sorry for the multi-comments on this issue, bad connexion here) |
indeed. Even this "used to work" this is not consistent with |
hm... well. I'm not savvy on the implementation details but +1 from me for someway to tell a container to not log anything via a setting in a compose file. We share our compose file across repos and extend it and that |
I created https://github.com/docker/compose-cli/issues/1615 to track this as a feature request. |
An option like that makes a lot of sense to me. Thanks! |
+1 on the feature request (#1615). Some containers in development are very verbose (pgAdmin is one that we use) and they flood the terminal, making it very difficult to keep track of the useful development logs of our own containers. We were able to found a workaround for pgAdmin by sending its access logs to |
@majoyal could you outline how you accomplished this in docker compose? Perhaps by posting the compose file? I need to do exactly this for pgAdmin. |
@davidjb99 This is what we have for pgAdmin:
The important part is the Reference: https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html Hope this helps! |
+1 for this feature request. I would love to be able to do this directly from the compose file. |
+1 for this feature request, getting a ton of logs from an image that doesn't have a flag to disable logs, the only way to disable logs was using |
@octopusOnJellyfish can't you rely on the recently introduced |
I have to attach to multiple containers, how can I pass more than one to the --attach flag? |
flag can be repeated, i.e |
Thank you, this is what I was looking for. |
Conversely, there is now a |
Both
Thanks for this @ndeloof, really appreciate it. |
Description
It seems like
docker compose
is not respecting logging: driver settings from the compose file. I looked around a bit but didn't see anything hinting that this shouldn't work anymore.Describe the results you received:
With no other changes
docker-compose up
does not include logs fromservice
docker compose up
includes logs fromservice
Describe the results you expected:
Same as docker-compose. Respect the logging option
Output of
docker version
:Output of
docker context show
:You can also run
docker context inspect context-name
to give us more details but don't forget to remove sensitive content.Output of
docker info
:Additional environment details (AWS ECS, Azure ACI, local, etc.):
The text was updated successfully, but these errors were encountered: