https://bugzilla.redhat.com/show_bug.cgi?id=1404434
Lars Kellogg-Stedman lars@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lars@redhat.com
--- Comment #1 from Lars Kellogg-Stedman lars@redhat.com --- Setting 'help' as the default command makes it unclear how to run the container in interactive mode...which also means that anything involving i/o redirection will also fail, as in:
echo 2+2 | docker run -i --rm calc
Or:
docker run -i --rm calc < somefile
It turns out that passing an empty command will work...
docker run -it --rm calc ''
...but that isn't necessarily intuitive. I would just drop the CMD directive from the Dockerfile.