docker-compose cp <source path> <dest path>

Copy files/folders between a service container and the local filesystem

Arguments

NameDescription
source path
dest path

Options

NameDescription
--allCopy to all the containers of the service
--archive, -aArchive mode (copy all uid/gid information)
--follow-link, -LAlways follow symbol link in SRC_PATH
--index <index>Index of the container if there are multiple instances of a service