How to Install Jaeger using Docker

In this article, we’ll guide you through installing Jaeger, an open-source distributed tracing tool, using Docker | How to Install Jaeger using Docker.

What is Jaeger?

Jaeger helps monitor and troubleshoot microservices by tracing requests across services. With Docker, setting up Jaeger is quick and simple, allowing you to start visualizing and analyzing tracing data with minimal effort.

Prerequisites

  • Ubuntu 24.04 LTS with minimal installation
  • SSH Access with admin privileges

Install Docker on Ubuntu 24.04 LTS

If you don’t already have Docker installed, you can install it on your system:

Step-1: Update your package database:

sudo apt update

Step-2: Install Docker:

sudo apt install docker.io

Step-3: Start and enable Docker:

sudo systemctl start docker
sudo systemctl enable docker

Step-4: Verify the installation:

docker --version
How to Install Jaeger using Docker 1

How to Install Jaeger using Docker

Step #1:Pull the Jaeger Docker image

To install Jaeger, pull its all-in-one Docker image, which includes the Jaeger Agent, Collector, Query service, and an in-memory storage component.

sudo docker pull jaegertracing/all-in-one:latest
How to Install Jaeger using Docker 2

Step #2:Run the Jaeger Docker container

Run the Jaeger container using the following command:

sudo docker run -d --name jaeger \
-e COLLECTOR_ZIPKIN_HTTP_PORT=9411 \
-p 5775:5775/udp \
-p 6831:6831/udp \
-p 6832:6832/udp \
-p 5778:5778 \
-p 16686:16686 \
-p 14268:14268 \
-p 14250:14250 \
-p 9411:9411 \
jaegertracing/all-in-one:latest
How to Install Jaeger using Docker 3

Step #3:Verify the installation

Once the container is running, you can access the Jaeger UI by opening your browser and visiting:

http://<ip-address>:16686
How to Install Jaeger using Docker 4

Here, you’ll be able to see the traces and other telemetry data being reported to Jaeger.

Step #4:To check container logs

To view the logs from the Jaeger container, use the following command:

sudo docker logs jaeger
How to Install Jaeger using Docker 5

Stopping and removing the container Jaeger Docker Container

To stop and remove the Jaeger container when it’s no longer needed:

To stop the container:

sudo docker stop jaeger
How to Install Jaeger using Docker 6

To remove the container:

sudo docker rm jaeger
How to Install Jaeger using Docker 7

Conclusion:

Installing Jaeger using a Docker image on Ubuntu 24.04 is a straightforward process that involves setting up Docker, pulling the Jaeger image, and running it with the necessary port configurations. This setup is ideal for development and testing environments, allowing you to deploy Jaeger’s all-in-one solution for distributed tracing quickly. By following these steps, you’ll have access to Jaeger’s powerful tracing capabilities and its web UI, helping you monitor and analyze your distributed systems efficiently.

Related Articles:

Metrics and Tracing for .NET App using OpenTelemetry, Jaeger and Prometheus

Reference:

Jaeger official documentation

Harish Reddy

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share via
Copy link
Powered by Social Snap