Does Running Java on Docker Containers Violate Agreements?
infoq.com
infoq.com
If you build your own images that include the Oracle JDK, host them in a private registry, and don't distribute them to 3rd parties you are probably fine. Otherwise, you may be in violation.
I am definitely not a lawyer, but I don't see how this is something specific to docker. Wouldn't this apply to VMs as well?
The same argument applies to e.g. EC2 machine images, but AMIs are private by default.
Docker containers, by contrast, store each layer separately, so that you can build up a runtime by overlaying multiple layer elements. Each software install results in its own layer being created and then pushed independently. This allows deltas to be shipped more efficiently since they only store the changes for each layer. However it now means that you're shipping the JRE separately from your application, which is against the rights given by the license.