Difference between revisions of "Docker cp"
Jump to navigation
Jump to search
(20 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{lc}} |
+ | <code>[[docker]] cp</code> copy [[files]] and or [[folders]] between a container and the local filesystem | ||
+ | * https://docs.docker.com/engine/reference/commandline/cp/ | ||
− | docker cp < | + | docker cp <containerId_or_name>:/file/path/within/container /host/path/target |
+ | (no output) | ||
+ | |||
+ | [[docker cp]] ./some_file CONTAINER:/work | ||
+ | |||
+ | == Related commands == | ||
+ | * <code>[[docker ps]]</code> | ||
+ | * <code>[[multipass transfer]]</code> | ||
+ | * <code>[[kubectl cp]]</code> | ||
+ | * <code>[[--platform]]</code> | ||
+ | * <code>[[docker pull]]</code> | ||
+ | * <code>[[docker export]] adoring_kowalevski | [[tar t]]</code> | ||
+ | * <code>[[docker commit]]</code> | ||
== See also == | == See also == | ||
* {{cp}} | * {{cp}} | ||
* {{Docker}} | * {{Docker}} | ||
+ | |||
+ | |||
+ | [[Category:Docker]] |
Latest revision as of 11:20, 24 January 2024
docker cp
copy files and or folders between a container and the local filesystem
docker cp <containerId_or_name>:/file/path/within/container /host/path/target (no output)
docker cp ./some_file CONTAINER:/work
Related commands[edit]
docker ps
multipass transfer
kubectl cp
--platform
docker pull
docker export adoring_kowalevski | tar t
docker commit
See also[edit]
cp
,dd
,sftp
,scp
,rsync
,casync
,mv
,fio
,ln
,docker cp, kubectl cp
,minikube cp
,multipass transfer
,Copy-Item
,Xcopy
- Docker:
docker-compose
, Docker Desktop, Docker Scout, Docker Swarm, Docker Volumes, Docker images management, docker network,docker inspect
,docker volume inspect
,Dockerfile
, Docker Engine release notes,docker kill
,moby
, Docker-in-Docker,docker context
,buildx
,docker tag
,docker system prune
, Docker Hub,hub-tool, /etc/docker/daemon.json
,hostconfig.json
, dockerd, logs, Docker logging, Backup,docker service
,depends on
,--dns, --filter
,--mount
,docker login
,docker build
,apt remove docker.io
,.dockerignore
, docker context ls |docker-machine, .docker/
, PWD,$HOME/.docker/config.json
, Docker ID,--env-file, docker --help
Advertising: