Navigation Menu

Skip to content

elchappo/docker-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

docker-tools

Docker-related tools and scripts

dcp.sh

dcp.sh 
Usage: dcp.sh [OPTIONS] SOURCE DESTINATION

Copies files and directories between running containers and the host

Patterns:
  dcp.sh CONTAINER:PATH HOSTPATH
  dcp.sh HOSTPATH CONTAINER:PATH
  dcp.sh CONTAINER1:PATH CONTAINER2:PATH

Examples:
* CONTAINER:PATH -> HOSTPATH
  dcp.sh kickass_yonath:/home/data.txt .
    - Copies '/home/data.txt' from 'kickass_yonath' container to the current host directory

* HOSTPATH -> CONTAINER:PATH
  dcp.sh ./test.txt kickass_yonath:/home/e1/e2
    - Copies 'test.txt' from the current host directory to '/home/e1/e2' in the 'kickass_yonath' container

  dcp.sh /home/user/Downloads/test.txt kickass_yonath:/home/e1/e2
    - Copies 'test.txt' from the host directory to '/home/e1/e2' in the 'kickass_yonath' container

  dcp.sh /home/user/Downloads kickass_yonath:/home/d1/d2
    - Copies the entire 'Downloads' directory to '/home/d1/d2' in the 'kickass_yonath' container

* CONTAINER1:PATH -> CONTAINER2:PATH
  dcp.sh kickass_yonath:/home ecstatic_colden:/
    - Copies the entire 'home' directory from 'kickass_yonath' to 'ecstatic_colden'

  dcp.sh kickass_yonath:/home/data.txt ecstatic_colden:/
    - Copies 'data.txt' file from 'kickass_yonath' conrainer to the 'ecstatic_colden' container

Options:
    -h       Display this help message

About

Docker-related tools and scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%