Usage
Arguments
The name or ID of the service to inspect
Description
Theinspect command provides a detailed view of a service, showing:
- Service ID and name
- Service mode (replicated or global)
- List of all containers with their details:
- Container ID
- Image being used
- Creation time
- Current status
- IP address on the mesh network
- Machine where it’s running
Examples
Inspect a service by name
Inspect a global service
Check container IP addresses
Useinspect to find the mesh network IP addresses of containers for direct communication:
10.210.X.Y) that other containers can use to connect to this service.
Output Fields
- CONTAINER ID: Short container ID (first 12 characters)
- IMAGE: Docker image used for the container
- CREATED: How long ago the container was created
- STATUS: Current container state (Up, Exited, etc.)
- IP ADDRESS: Mesh network IP address for direct container communication
- MACHINE: Name of the machine running this container
The IP ADDRESS field will be empty for containers that are not running or use host networking mode.
Related Commands
uc service ls- List all servicesuc ps- List all containers across all servicesuc service logs- View logs from service containersuc service exec- Execute commands in service containers
