Docker Files icon

Docker Files

Copy files to and from Docker containers, export container filesystems, and save or load Docker image tar archives

Actions5

Container → Export

AI-generated

Summary

Exports a container's filesystem as a tar archive binary.

Inputs

  • containerId (required) — Container name or full/short container ID.
  • outputBinaryPropertyName (required) — Name of the binary property to store the exported tar file.

Output shape

a single item with a binary property containing the exported tar archive

The binary property name defaults to 'data'. The archive filename is formatted as '{containerId}.tar'.

Examples

Example 1: Export the filesystem of a running web server container named 'web' to a binary property named 'exportedData'.

Container ID: web, Output Binary Property: exportedData

Example 2: Export a container with ID 'abc123' and save the result in the default 'data' binary property.

Container ID: abc123, Output Binary Property: data

Links

Discussion