faradayio / cage

Develop and deploy complex Docker applications
http://cage.faraday.io
Apache License 2.0
307 stars 26 forks source link

docker-compose doesn't allow resetting entrypoint with `--entrypoint=""` #21

Closed emk closed 7 years ago

emk commented 7 years ago

Found by @seamusabshere. It looks like docker-compose has especially weak --entrypoint support, and it doesn't treat an empty --entrypoint as "reset to default" like I somehow thought it did.

DEBUG:cage::command_runner: Running ["docker-compose", "-p", "fdy", "-f", "/home/emk/foo/.cage/pods/diamond.yml", "run", "--entrypoint", "", "diamond", "ls"]
Could not find command "ls".
Error: error running 'docker-compose -p fdy -f /home/emk/foo/.cage/pods/diamond.yml run --entrypoint  diamond ls'

I'm not sure what to do here, other than document how to override --entrypoint. It seems like ENTRYPOINT causes lots of problems for a very minor syntactic gain.

emk commented 7 years ago

There's really not much I can do here. Closing, but please feel free to reopen if you have suggestions.