A common method to instrument a containerized application is to include the AppDynamics App Server Agent when building the application image. You add a COPY command to the Dockerfile to copy the agent files to the image. The COPY command copies the application binary to the Docker container image. If an App Server Agent upgrade is required, you must rebuild the image with the new agent files.
See the language-specific container installation page for instructions on how to use a Dockerfile:
In this example for a Java application, the Java Agent files in the AppServerAgent folder are copied to the application image and the application JAR file. The agent environment variables are set before the start script runs.