Uninstalling the Instana agent on Docker
To uninstall the Instana agent from Docker deployments, remove the Instana agent container and Docker images.
Before you begin
Before uninstalling the Instana agent, you need to uninstall the tracers (or in-process collectors) that are installed in your application runtimes.
If your Docker environment contains PHP runtimes and PHP tracing is enabled (by default) in the agent configuration.yaml file, you need to uninstall PHP Tracer by following the steps that are described in Disabling PHP tracing.
Procedure
After uninstalling the tracers, you can proceed to uninstall the Instana agent from Docker deployments by completing the following steps:
-
Remove the Instana agent container by running the following command:
sudo docker rm -f instana-agent -
If required, remove the Docker image by running the following command:
sudo docker image rm icr.io/instana/agent
The Instana agent container and Docker images are removed.