Docker icon

Docker

Manage Docker containers, images, networks, volumes, and daemon metadata with Unix socket, TCP, TLS, or SSH connections

Container → List Files

AI-generated

Summary

List container files

Inputs

  • containerId (required) — Container name or full/short ID
  • workingPath — Absolute path inside the container; relative paths resolve from here
  • glob — Shell-style pattern to filter candidate files
  • includeHidden — Include dotfiles and dot-directories
  • maxDepth — Number of directory levels to traverse below Working Path
  • listFilesReturnAll — Return every discovered entry or only up to a given limit
  • listFilesLimit — Maximum number of entries to return (only relevant when listFilesReturnAll is false)

Output shape

an array of file entries (each representing a discovered file or directory)

If listFilesReturnAll is false and limit is set, the list may be truncated; otherwise the full list is returned; empty array if no files match

Examples

Example 1: List all .log files in /workspace

containerId='myContainer', workingPath='/workspace', glob='*.log', includeHidden=false, maxDepth=4, listFilesReturnAll=true, listFilesLimit=200

Example 2: Search for a text pattern across files

containerId='web', workingPath='/app', glob='*.txt', includeHidden=true, maxDepth=3, listFilesReturnAll=false, listFilesLimit=10

Links

Discussion