Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Viewing output of stopped Docker container

Tags:

docker

It seems like there's no way to view the screen output of a stopped container (which makes logical sense, since it'd need to be running in order to poll for screen content). However, if you're working in a vacuum with a third-party image, how can you debug a failure to start if you can't access the screen output? Can you stream the screen output to a file?

like image 946
Dustin Oprea Avatar asked Sep 09 '14 21:09

Dustin Oprea


1 Answers

Did you notice the docker logs command? It will print STDOUT from the container.

like image 115
Ben Whaley Avatar answered Sep 23 '22 22:09

Ben Whaley