Docker process killed with cryptic `Killed` message
Running a python script in a docker container and everything seems to be running smoothly, seeing some STDOUT messages, about 5 minutes in I get a
Killed message with no further explanation and the process stops. Querying a db so could be a disk space issue, could be OOM issue. I’m not sure but I have no idea where to find logs about this kill message so I can get to the root of this problem. Any ideas where these logs are?
Running docker-machine on Mac OSX.
That’s really all the message says!
root@c7b800e0f276:/opt/mymodule# python Python 2.7.13 (default, May 1 2017, 22:44:36) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mymodule import model >>> model.run('2017-04-01') INFO:Deleting from input table. INFO:Inserting into input table. INFO:Querying input table for chunk. Killed root@c7b800e0f276:/opt/mymodule# exit
One Solution collect form web for “Docker process killed with cryptic `Killed` message”
With Docker for Mac, you can get into the host VM namespace with:
docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh
chroot /host to change root to the host mount. Now, you can use utilities like
dmesg to check for any OOM message (like the comments to your question suggest).