Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Java process hangs on inside container #18502
To be precise commands are executed properly end prints what them supposed to print, but doesn't exit or fail. Logs are empty,
Environment details: VirtualBox
Steps to Reproduce:
I don't know enough about java threading internals and how things are supposed to be shutdown cleanly... But I find it is very interesting that an explicit System.exit(0) call alleviates the problem as opposed to just leaving main. It would be interesting to implement a similar sequence of shutdown events in another language (modeled after java's) to see if it is java specific or not.
As a side note, this java + linux issue was recently post on hacker news: http://blog.omega-prime.co.uk/?p=161
Incidentally I worked around the problem by using 'devicemapper' rather than default AUFS storage driver - when using docker-machine you can set it to be the default by using the flag
Also everything I read/everyone I speak to seems to be of the opinion that AUFS is a mess and not to use it, so this may be a chance to change early on.