Docker - CP command (COPY|ADD)

About

Copy 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

Documentation / Reference


Powered by ComboStrap