1buildah-copy(1)             General Commands Manual            buildah-copy(1)
2
3
4

NAME

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

SYNOPSIS

11       buildah copy container src [[src ...] dest]
12
13

DESCRIPTION

15       Copies the contents of a file, URL, or a  directory  to  a  container's
16       working directory or a specified location in the container.  If a local
17       directory is specified as a source, its contents are copied to the des‐
18       tination.
19
20

OPTIONS

22       --add-history
23
24
25       Add  an  entry  to  the history which will note the digest of the added
26       content.  Defaults to false.
27
28
29       Note: You can also override the default value of --add-history by  set‐
30       ting  the  BUILDAH_HISTORY  environment  variable.  export BUILDAH_HIS‐
31       TORY=true
32
33
34       --chown owner:group
35
36
37       Sets the user and group ownership of the destination content.
38
39
40       --quiet
41
42
43       Refrain from printing a digest of the copied content.
44
45

EXAMPLE

47       buildah copy containerID '/myapp/app.conf' '/myapp/app.conf'
48
49
50       buildah  copy  --chown  myuser:mygroup  containerID   '/myapp/app.conf'
51       '/myapp/app.conf'
52
53
54       buildah copy containerID '/home/myuser/myproject.go'
55
56
57       buildah copy containerID '/home/myuser/myfiles.tar' '/tmp'
58
59
60       buildah copy containerID '/tmp/workingdir' '/tmp/workingdir'
61
62
63       buildah  copy  containerID  '  ⟨https://github.com/containers/buildah'⟩
64       '/tmp'
65
66
67       buildah copy containerID 'passwd' 'certs.d' /etc
68
69

SEE ALSO

71       buildah(1)
72
73
74
75buildah                           March 2017                   buildah-copy(1)
Impressum