Docker - CP command (COPY|ADD)

Card Puncher Data Processing

About

The copy command copies files/folders between a container and the local filesystem and vice-versa.

Example

  • From local system to container
docker cp foo.txt mycontainer:/foo.txt
  • From container to local system
docker cp mycontainer:/foo.txt foo.txt





Discover More
Docker Build Context
Docker - Build (an image from a Dockerfile)

The build command creates an image from: a Dockerfile. and a context: A context is a list of files sent to the daemon Build an image where: with: -t defines the image name name:latest ....
Card Puncher Data Processing
Docker - Data Persistence

mount a file or directory of the host into a container. volume: mount a file or directory of the host machine into a container located at /var/lib/docker/volumes/ : mount a file or directory of the...
Card Puncher Data Processing
Docker - docker client

The CLI uses the Docker REST API to control or interact with the Docker daemon where subcommand is: attach - Attach to a running container build - Build an image from a Dockerfile commit -...



Share this page:
Follow us:
Task Runner