You have docker history <image> that is very helpful. It can even be used to generate a dockerfile if none of the steps involved stdin.
If a step as stdin, the only way to know what happened would be to do docker logs <container id parent>, but if you do not have the container, you can’t.