Check File Contents of a Docker Image

When troubleshooting, you sometimes need to check the contents of a docker image.

1docker run -it <name_of_image> sh

Once you're in, you can inspect specific files and its content.