This document explains how to install the New Relic APM agent for Java applications on a Docker container.
Install Java agent on Docker container
Installing a Java agent in a Docker container involves the same procedure for a standard Java agent install. You can add the agent jar to your container image (Swarm, ECS, AKS, EKS, OpenShift K8s, etc).
Here is a step-by-step tutorial on the New Relic Explorer's Hub.