Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.35 KB

buildah-copy.md

File metadata and controls

49 lines (29 loc) · 1.35 KB

buildah-copy "1" "March 2017" "buildah"

NAME

buildah-copy - Copies the contents of a file, URL, or directory into a container's working directory.

SYNOPSIS

buildah copy container src [[src ...] dest]

DESCRIPTION

Copies the contents of a file, URL, or a directory to a container's working directory or a specified location in the container. If a local directory is specified as a source, its contents are copied to the destination.

OPTIONS

--add-history

Add an entry to the history which will note the digest of the added content. Defaults to false.

Note: You can also override the default value of --add-history by setting the BUILDAH_HISTORY environment variable. export BUILDAH_HISTORY=true

--chown owner:group

Sets the user and group ownership of the destination content.

--quiet

Refrain from printing a digest of the copied content.

EXAMPLE

buildah copy containerID '/myapp/app.conf' '/myapp/app.conf'

buildah copy --chown myuser:mygroup containerID '/myapp/app.conf' '/myapp/app.conf'

buildah copy containerID '/home/myuser/myproject.go'

buildah copy containerID '/home/myuser/myfiles.tar' '/tmp'

buildah copy containerID '/tmp/workingdir' '/tmp/workingdir'

buildah copy containerID 'https://github.com/containers/buildah' '/tmp'

buildah copy containerID 'passwd' 'certs.d' /etc

SEE ALSO

buildah(1)