docker-entrypoint.sh tries to detect if asadmin is ran in CMD with the following test :
"$1" = 'asadmin'
According to the documentation, this doesn't work when using CMD in shell form since the resulting command will be:
exec_entry p1_entry /bin/sh -c exec_cmd p1_cmd