Java in a docker container

David Holmes david.holmes at oracle.com
Wed Dec 14 22:43:39 UTC 2016


On 15/12/2016 8:36 AM, kant kodali wrote:
> Hi Brian,
>
> If you think it is insufficiency of Docker then perhaps one may want to
> look at how things are done in other Languages such as Go and so on? I just
> don't why Java is targeted all the time when I hear from people saying "No
> one puts Java in a container". My mind immediately thinks is it only Java
> or any VM based language.

It is any program that would gather information from the OS that the 
container modifies, and which hasn't been (re)written to get the "real" 
information from the container.

In this case though it seems more likely to be a "bug" in the fs 
implementation - at least differences in behaviour between the overlayfs 
and "regular" fs.

David
-----

> thanks,
> kant
>
>
> On Wed, Dec 14, 2016 at 8:48 AM, Brian Burkhalter <
> brian.burkhalter at oracle.com> wrote:
>
>> There are also container-related issues in Java NIO [1]. I spent a
>> not-insignificant amount of time on this a few months ago but a solution
>> was elusive and we let it drop for JDK 9. I am not convinced that the
>> fundamental problem is not due to an insufficiency of Docker itself. There
>> are several issues linked from [1] among which the Docker-specific one is
>> [2].
>>
>> Regards,
>>
>> Brian
>>
>> [1] http://mail.openjdk.java.net/pipermail/nio-dev/2016-
>> October/003915.html
>> [2] https://bugs.openjdk.java.net/browse/JDK-8165852
>>
>> On Dec 13, 2016, at 12:14 AM, Volker Simonis <volker.simonis at gmail.com>
>> wrote:
>>
>>> […] and there's another Enhancement request open for this topic:
>>>
>>> 8146115: physical memory does not see Docker resource limits
>>> https://bugs.openjdk.java.net/browse/JDK-8146115
>>>
>>> Please feel free to contribute any insights from your side to this
>> discussions.
>>
>>


More information about the jdk9-dev mailing list