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.

  • Error output after installation of TensorFlow in docker
  • Can't connect to mongodb docker container from another container
  • Read cgroups data without mounting it
  • Docker Swarm + Docker Compose: running linked containers on different nodes?
  • How to reduce my java/gradle docker image size?
  • Add a new entrypoint to a docker image
  • 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
    

    Thanks!

  • Building Docker images with Jenkins that runs inside a Docker container
  • How to remove Server list of Docker(Project Interpreter) on Pycharm
  • How can I start php-fpm in a Docker container by default?
  • User permissions not changing on docker hub
  • How to send node.js logs to Cloudwatch Logs from Elastic Beanstalk Docker application?
  • How can I test all ulimits of docker?
  • 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
    

    Then run 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).

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.