CmdID

CmdID / Commands

docker-container-cp

Copy files or directories between host and container filesystems. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Copy a file or directory from the host to a container

docker [cp|container cp] path/to/file_or_directory_on_host container_name:path/to/file_or_directory_in_containerIdentify

Copy a file or directory from a container to the host

docker [cp|container cp] container_name:path/to/file_or_directory_in_container path/to/file_or_directory_on_hostIdentify

Copy a file or directory from the host to a container, following symlinks (copies the symlinked files directly, not the symlinks themselves)

docker [cp|container cp] --follow-link path/to/symlink_on_host container_name:path/to/file_or_directory_in_containerIdentify