I want to inspect a docker image created by someone else with both an entrypoint and cmd specified, for example:
ENTRYPOINT ["/usr/sbin/apache2ctl"]
CMD ["-D", "FOREGROUND"]
I currently do:
docker run --interactive --tty --entrypoint=/bin/bash $IMAGE --login
Is there a way to override CMD to be empty (so I don't have to use "--login") ?
-entrypointoverrides the entrypoint. See the edited answer – Panagiotis Moustafellos May 13 '14 at 05:07-iafter$IMAGE? – Eyal Levin Oct 21 '18 at 12:57Warning: Pkg.installed() is deprecated. Do you know any update on how to get the package version now? – Adam Ryczkowski Apr 06 '20 at 10:39