Hello I have a question on a specific docker compose behavior that I haven’t been able to find an answer to anywhere.
For reference, I am running these versions:
❯ docker -v
Docker version 20.10.13, build a224086
❯ docker compose version
Docker Compose version v2.3.3
My question is why does the docker logger return an ERRO log event after a compose up --abort-on-container-exit command?
Here’s an example…
version: "3.9"
services:
web:
image: alpine:latest
command: echo "Hello"
docker compose up --build --abort-on-container-exit
[+] Running 1/0
⠿ Container quip-web-1 Created 0.0s
Attaching to quip-web-1
quip-web-1 | Hello
quip-web-1 exited with code 0
Aborting on container exit...
[+] Running 1/0
⠿ Container quip-web-1 Stopped 0.0s
ERRO[0000] 0
ERRO[0000] 0
is a Docker Error log. It is display the exit code of the app I see, but why an error log? It’s not an error.
I know I can hide that log event by setting --log-level fatal
on docker, but that isn’t wanted behavior for my case.