Blog

Docker Stack Visualizer

A visualizer for visually checking node and container distribution in Docker swarm mode

ClaudeTranslated by Claude Opus 4.5

AI-generated content may be inaccurate or misleading.

Overview

Visualizer is a tool created to introduce the stack feature at DockerCon 2016. Using this tool, you can visually see the distribution of nodes and containers in swarm mode.

Hands-on Practice

visualizer.yaml

version: "3"

services:
  app:
    image: dockersamples/visualizer
    ports:
      - "9000:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    deploy:
      mode: global
      placement:
        constraints: [node.role == manager]

If you're practicing with containers, use the docker cp command to transfer the file

$ docker cp visualizer.yaml manager:/visualizer.yaml

Let's run the service

$ docker exec -it manager \
docker stack deploy -c /visualizer.yaml visualizer

If you access localhost:9000, you'll see a beautiful interface.

References

Deploying Docker Containers Using Swarm_2

Published:
Modified:

Previous / Next