I have a server with odoo containers
Active containers are db and did17
There is 2 stopped containers : didtest17 and demo17 (only visibles with “docker container ls -a”)
When I read logs “sudo docker logs --details -n 200 did17”, lines from stopped containers appear, as they’re actives :
Since you wanted to get the logs from a specific container, logs from other containers shouldn’t appear. Are you sure those are the logs from another container and not a bug in the logs of the app in the container if that mounts the same data for example?
Hi, and thanks for your answer.
You’re right, it’s not Docker desktop, sorry for the mistake. I use docker 25.0.0 with command lines on ubuntu 22.04, I don’t know which is correct category…
I don’t think it’s an error in app (ERP ODOO), because I update Odoo and it’s the same…
And messages from containers didtest17 and demo17 are coherents with container states (not upgrade so they try to load new modules).
Since the logs of each container are in separate json files, I can’t imagine how the logs from another container could appear. Please run the following command and check if you see logs in the json lines mentioning another container:
```
echo "I am a code."
echo "An athletic one, and I wanna run."
```
If your default logging driver is journald, then the logs are stored in the journal logs. If there is a bug in the communication between the journald and Docker, that could cause mixing logs of multiple containers in the output. You can check that by running the following command:
docker info --format '{{ .LoggingDriver }}'
but if it is journald and not “json-file”, my first command will not succeed.
I try your commands, “docker info…” answer is “json-file”
Yesterday I deleted 2 test databases and containers so “demo17/didtest17” disappear.
I keep one other container “fred17” with one database “fred”, for test.
Sorry for long time
I delete all other containers and databases, so I don’t see them again
it seems faster, so at this time I keep this solution
Thanks a lot