$ docker image inspect -f 'CMD {{.Config.Cmd}}, ENTRYPOINT {{.Config.Entrypoint}}' postgres:9.4 CMD [postgres], ENTRYPOINT [docker-entrypoint.sh]