So I know how I can access the logs for a running container (e.g. sudo docker logs APPNAME), but I’ve never tried before for a dangling image.
I have a node.js application running on Docker, and I need to check the logs from several different prior images to see if I can find instances of a glitch that occurred last week.
I can view the images in question by entering “docker images”, and that gives me the Image ID.
I can also inspect the image via: “docker image inspect IMAGE f2f928XXX”
Is there any equivalent to sudo docker logs APPNAME whereby I can also include an IMAGE name? Or a way I can spin up an old image without affecting the production version in order to access the logs?