DOCKER-COMPOSE-CP(1)

πŸ“¦ version 2.26.1, in debian trixie

πŸ’– docker-compose-cp β€” the manual, but make it cute πŸ’–

okay so bestie, this is the page for docker-compose-cp, from the DOCKER-COMPOSE-CP(1) manual. it's literally all about yeeting files around between your service container and your local filesystem. slay.


✨ NAME ✨

docker-compose-cp β€” copy files and folders between a service container and the local filesystem, no cap 🫢


🌸 SYNOPSIS 🌸

docker compose cp [OPTIONS] SERVICE:SRC_PATH DEST_PATH|-
docker compose cp [OPTIONS] SRC_PATH|- SERVICE:DEST_PATH

so like. two directions. container ➑️ you, or you ➑️ container. the - at the end of the path is doing its own little thing (it's stdin/stdout energy, iykyk). πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

copy files/folders between a service container and the local filesystem. that's it. that's the whole vibe. it's giving cp but the other side is a container. iconic. ✨


πŸŽ€ OPTIONS πŸŽ€

  • -a, --archive[=false] β€” archive mode, aka copy all the uid/gid information too. the "preserve everything, leave nothing behind" setting. πŸ”₯
  • -L, --follow-link[=false] β€” always follow the symbol link in SRC_PATH. yes always. it said what it said. 🧚
  • -h, --help[=false] β€” help for cp. your lil emergency bestie when you forget a flag. πŸ’œ
  • --index=0 β€” index of the container, for when your service has multiple replicas and you gotta pick which one. default is 0. πŸ‘‘

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

  • --dry-run[=false] β€” execute the command in dry run mode. nothing actually happens, it just ✨imagines✨ doing it. perfect for a vibe check before you commit. πŸ’€

⭐ SEE ALSO ⭐


Mar 2025 energy, and that's the DOCKER-COMPOSE-CP(1) page done bestie β€” go copy something iconic, and remember: -a for the archive girlies, -L for the link followers. periodt. πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from