Every night the report container builds a sales summary from ~/report-lab/sales.csv. This morning there is no summary, and not a single error email in the inbox. Look at how the container ended.
See how the report ended
~/report-lab holds the nightly report: the report container builds a summary from sales.csv. Look at the list of containers, the report log and two fields from docker inspect.
First, predict
The report build did not finish. What will docker logs report show after the line about the build?
Now start the exercise, run the command and compare your prediction with the output.
The build broke off without an error message, the container exited with code 137, and OOMKilled is true. What stopped the build?
-
build.sh has no
exit, and it printed no error. Code 137 is what a process gets when it is killed from outside by SIGKILL. -
A container has no time limit: it is stopped with
docker stop, and thenOOMKilledstays false.
The kernel killed the build: it ran out of the memory given to the container.