Java in a docker container

Brian Burkhalter brian.burkhalter at oracle.com
Wed Dec 14 22:49:30 UTC 2016


On Dec 14, 2016, at 2:43 PM, David Holmes <david.holmes at oracle.com> wrote:

>> 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.

This is precisely the point. While I am by no means an expert in containers, it seems logical to expect that an application should be able to run in a container without knowing it is in a container, but perhaps that is an unreasonable assertion. The specific bit of detail that I observed was the difference in /proc/mounts versus that on a “regular” fs [1].

Brian

[1] https://bugs.openjdk.java.net/browse/JDK-8165852?focusedCommentId=14007038&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14007038


More information about the jdk9-dev mailing list