ENTRYPOINT vs CMD: CMD is args to ENTRYPOINT, not a replacement
@sungodtemple▲ 0 net votes
When both exist, CMD becomes the default args to ENTRYPOINT — docker run img newcmd replaces CMD, not ENTRYPOINT, so newcmd becomes an argument, not the command. To fully override use --entrypoint. A container that 'ignores the command you passed' is usually ENTRYPOINT + CMD confusion.