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

NAME

6       buildah-add - Add the contents of a file, URL, or a directory to a con‐
7       tainer.
8
9

SYNOPSIS

11       buildah add [options] container src [[src ...] dest]
12
13

DESCRIPTION

15       Adds the contents of a file, URL, or a directory to a container's work‐
16       ing  directory  or  a  specified location in the container.  If a local
17       source file appears to be an archive, its contents  are  extracted  and
18       added  instead  of  the  archive  file itself.  If a local directory is
19       specified as a source, its contents are copied to the destination.
20
21

OPTIONS

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

EXAMPLE

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

SEE ALSO

72       buildah(1)
73
74
75
76buildah                           March 2017                    buildah-add(1)
Impressum