whisperingchaos / dkrcp Goto Github PK
View Code? Open in Web Editor NEWCopy files between Docker containers and images
License: Other
Copy files between Docker containers and images
License: Other
If demanded, metadata, like ENTRYPOINT, can be 'inherited' from SOURCE image references when TARGET is a new image.
Workaround: use --change option to set metadata values for new images.
Situations relying on the stated "default root directory" expectation fail when they should succeed.
For example, the following command should copy the 'hostname' file to the targeted container's root ('/') directory:
dkrcp /etc/hostname container_UUID:
However, it fails with the message: "no such directory"
.
Since dkrcp
ultimately relies on docker cp
this defect will be addressed once docker cp
has resolved Docker issue#20926
Until resolved, specify '/' to circumvent this problem:
dkrcp /etc/hostname container_UUID:/
A bug in docker 1.8 would prevent deletion of an image if a container included a layer referencing an image's topmost layer even though the container was derived from another image that was different but included this same image layer.
To advert this problem, the initial SCRATCH
image, used when creating an image's first layer is differentiated by executing MAINTAINER $(basename $(mktemp -u))
resulting in a unique top image layer for each image created by the dkrcp
.
As a workaround, use the --change 'MAINTAINER <MaintainerName>'
to set the Author field to a desired value.
This workaround strictly applies to Docker 1.8. In derivative Docker versions, dkrcp
doesn't execute the MAINTAINER instruction, therefore, the Author field is unassigned.
dkrcp
set's its own PATH variable instance and in the situation where the working directory isn't dkrcp
's install directory, a tilde path expression referencing dkrcp
's install directory won't be properly expanded resulting in the generation of the "No such file or directory" message for each module dkrcp
depends on.
#Ex: dkrcp installed to ~/Desktop/project/dkrcp and working directory is set to home:
:~$ ~/Desktop/project/dkrcp/dkrcp.sh --help
/home/secure/Desktop/project/dkrcp/dkrcp.sh: line 15: MessageInclude.sh: No such file or directory
/home/secure/Desktop/project/dkrcp/dkrcp.sh: line 16: ArgumentsGetInclude.sh: No such file or directory
/home/secure/Desktop/project/dkrcp/dkrcp.sh: line 17: ArrayMapTestInclude.sh: No such file or directory
/home/secure/Desktop/project/dkrcp/dkrcp.sh: line 18: VirtCmmdInterface.sh: No such file or directory
/home/secure/Desktop/project/dkrcp/dkrcp.sh: line 19: CommonInclude.sh: No such file or directory
/home/secure/Desktop/project/dkrcp/dkrcp.sh: line 20: UcpInclude.sh: No such file or directory
/home/secure/Desktop/project/dkrcp/dkrcp.sh: line 21: ArgumentsMainInclude.sh: No such file or directory
Command-line Completion not implemented.
--ucpchk-reg
currently enables searching remote registries for image names that are unknown to the local Docker Engine instance. However, since its implemented as a simple boolean, it simultaneously enables this behavior for both SOURCE and TARGET arguments. This issue requests enhancing the allowable values for --ucpchk-reg
to permit independent expression of this feature.
Although supported for Docker Engine 1.10+, this docker cp
option doesn't seem to function. Therefore, its functionality doesn't currently work in dkrcp
nor has it been tested. See docker cp
issue #21146.
Currently, docker cp
sets target image/container file permissions to 'root'. Perhaps a future version will accept specifying UID/GID.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.