Actions42
- Container Actions
- Image Actions
- Network Actions
- System Actions
- Volume Actions
Container → List
AI-generatedSummary
List Docker containers, optionally including stopped ones and controlling result count
Inputs
- allContainers — Whether to include stopped and exited containers
- returnAll — Whether to return all results or only up to a given limit
- limit — Max number of results to return
Output shape
a list of container objects
Pagination is controlled by the limit; set returnAll to true to retrieve all results without a limit
Examples
Example 1: List all running containers with default settings
allContainers=false, returnAll=true, limit=50
Example 2: Include stopped containers and limit to 20 results
allContainers=true, returnAll=false, limit=20
Example 3: Retrieve every container by enabling returnAll
allContainers=true, returnAll=true, limit=0