The container_id label for containers running on Docker Swarm clusters has the following format:
/swarm/<stack_name or "_">/<service>/<replica or machine_id>
For example:
A replicated service within the frontend stack: /swarm/frontend/nginx/1
A global service within the frontend_global stack: /swarm/frontend_global/nginx/fry1nvolutwscccb0o8qtakjy, where fry1nvolutwscccb0o8qtakjy is the node ID.
The
container_id
label for containers running on Docker Swarm clusters has the following format:/swarm/<stack_name or "_">/<service>/<replica or machine_id>
For example:
frontend
stack:/swarm/frontend/nginx/1
frontend_global
stack:/swarm/frontend_global/nginx/fry1nvolutwscccb0o8qtakjy
, wherefry1nvolutwscccb0o8qtakjy
is the node ID./swarm/_/redis/1