The docker inspect command provides detailed information about a running container in JSON format. This information includes:
- Container ID: Unique identifier for the container.
- Name: The name assigned to the container.
- Image: The image from which the container was created.
- State: Current state of the container (running, exited, etc.).
- Network settings: Information about the container's network configuration, including IP address and ports.
- Mounts: Details about volumes and bind mounts associated with the container.
- Environment variables: Any environment variables set for the container.
- Command: The command that was executed when the container started.
- Created time: Timestamp of when the container was created.
- Labels: Any labels assigned to the container.
You can use the command as follows:
docker inspect <container_name_or_id>
Replace <container_name_or_id> with the actual name or ID of the container you want to inspect.
