CmdID / docker / docker compose
docker compose export
Export a service container's filesystem as a tar archive Docker Compose reference
3 options Its page in the Docker Compose reference
Options
--dry-runExecute command in dry run mode--indexindex of the container if service has multiple replicas.--output, -oWrite to a file, instead of STDOUT