When I need to inspect a docker container that I’ve created that is having issues running the normal CMD in the Dockerfile, I comment out that command and replace with “sleep” command to just pause the container when it starts so I can log into it and inspect the installation.
In Dockerfile
CMD ["sleep","3600"]
To log into the running Docker instance
docker exec -i -t <Container ID> bash