Skip to content

Instantly share code, notes, and snippets.

@achraf-jeday
Created January 8, 2020 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save achraf-jeday/9510fed879793389e9cd295d241f3f40 to your computer and use it in GitHub Desktop.
Save achraf-jeday/9510fed879793389e9cd295d241f3f40 to your computer and use it in GitHub Desktop.
docker events&
docker events&
Then run your failing docker run ... command. Then you should see something like the following on screen:
2015-12-22T15:13:05.503402713+02:00 xxxxxxxacd8ca86df9eac5fd5466884c0b42a06293ccff0b5101b5987f5da07d: (from xxx/xxx:latest) die
Then you can get the startup hex id from previous message or the output of the run command. Then you can use it with the logs command:
docker logs <copy the instance id from docker events messages on screen>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment