If your Docker container is running a short command and you want to look inside it, sometimes it's really hard to do it, since
docker exec
doesn't run on stopped containers. What you can do is copy a container and run it with bash entrypoint.
docker ps -a -f "name=my-container"
docker commit my_container_id user/my-container
docker run -it --entrypoint bash user/my-container