An image does something odd and you want to see what is in there, without starting the app.
docker run --rm -it --entrypoint sh nginx:stable
--entrypoint sh replaces the normal start command, so the app never runs. --rm removes the container when you exit. Use bash instead of sh when the image has it. Minimal images without any shell will refuse, and then docker create plus docker cp is the way in.
Further reading: docker run reference