pull down to refresh

TIL In Docker Compose, when you define a command directive for a service, it will override any default CMD directive set in the Docker image.
wtf man...
What behavior were you expecting? Them both to run?
reply
idk what i was expecting. ChatGPT wrote it.
reply
I guess I would expect the command in the Dockerfile to take precedent since it's what (I thought) would go into the actual image.
And other things like the entrypoint.sh pattern.
Maybe the commands from the compose file would append.
reply
0 sats \ 0 replies \ @nym 12 Jan
Strange
reply