Scroll to navigation

DOCKER-COMPOSE-EXPORT(1) DOCKER-COMPOSE-EXPORT(1)

NAME

docker-compose-export - Export a service container's filesystem as a tar archive

SYNOPSIS

docker compose export [OPTIONS] SERVICE

DESCRIPTION

Export a service container's filesystem as a tar archive

OPTIONS

-h, --help[=false] help for export

--index=0 index of the container if service has multiple replicas.

-o, --output="" Write to a file, instead of STDOUT

OPTIONS INHERITED FROM PARENT COMMANDS

--dry-run[=false] Execute command in dry run mode

SEE ALSO

docker-compose(1)

Oct 2025