I've tested this with CMD echo test, CMD ["echo", "test"], and CMD ["echofail", "test"] and they all work as expected, the only one I'm unsure of is CMD echofail test gives me /bin/sh: 1: echofail: not found - however on the latest rpi image it gives test: 1: test: echofail: not found so it seems ok
I've tested this with
CMD echo test
,CMD ["echo", "test"]
, andCMD ["echofail", "test"]
and they all work as expected, the only one I'm unsure of isCMD echofail test
gives me/bin/sh: 1: echofail: not found
- however on the latest rpi image it givestest: 1: test: echofail: not found
so it seems ok