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?
idk what i was expecting. ChatGPT wrote it.
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.
Strange
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...