Skip to content

y-taka-23/docker-inject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Inject

Build Status

Copy files/directories from hosts to running Docker containers.

Description

Surely you sometimes desire to copy files from your host machine to running Docker containers. Indeed docker cp provide the way to copy files from containers to hosts, but we have no command for the retrorse copying.

One of the ways to transport objects is to mount a directory by the -v option of docker run and use the directory as a portal. Meanwhile this method is, as you might notice, completely helpless for running containers.

Docker Inject provide the way to copy objects from hosts to running containers. With the command, you are able to inject not only a single file but also directories recursively.

Demo

asciicast

Requirement

Installation

Download the appropriate zip package for your system.

After downloading, unzip the package and copy the docker-inject binary to somewhere on the PATH so that it can be executed.

Incidentally, docker-inject is written in Go, thus you can build the latest version from the source by:

$ go get https://github.com/y-taka-23/docker-inject

License

MIT

Author

y-taka-23

About

Copy files/directories from hosts to running Docker containers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages