docker-cp(1)

docker-cp1

Copy files/folders between a container and the local filesystem

Usage

docker {cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH | -}

docker {cp [OPTIONS] SRC_PATH | - CONTAINER:DEST_PATH}

Overview

Alias for docker container cp.

Options

-a, --archive[=false]
Archive mode (copy all uid/gid information)

-L, --follow-link[=false]
Always follow symlinks in SRC_PATH

-q, --quiet[=false]
Suppress progress output during copy. Progress output is automatically suppressed if no terminal is attached

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From docker 1:29.9.2-1 in Arch Linux 2026-11-01. Also shipped by podman-docker. Parsed by carta from the page's man source.