Você está com falta de workdir=
:
Directories
Overlaying mainly involves directories. If a given name appears in both upper and lower filesystems and refers to a non-directory in either, then the lower object is hidden - the name refers only to the upper object.
Where both upper and lower objects are directories, a merged directory is formed.
At
mount
time, the two directories given as mount options lowerdir and upperdir are combined into a merged directory:mount -t overlay overlay -olowerdir=/lower,upperdir=/upper, workdir=/work /merged
The workdir needs to be an empty directory on the same filesystem as upperdir.
Then whenever a lookup is requested in such a merged directory, the lookup is performed in each actual directory and the combined result is cached in the dentry belonging to the overlay filesystem. If both actual lookups find directories, both are stored and a merged directory is created, otherwise only one is stored: the upper if it exists, else the lower.
Only the lists of names from directories are merged. Other content such as metadata and extended attributes are reported for the upper directory only. These attributes of the lower directory are hidden.
Multiple lower layers
Multiple lower layers can now be given using the the colon
:
as a separator character between the directory names. For example:mount -t overlay overlay -olowerdir=/lower1:/lower2:/lower3 /merged
As the example shows,
upperdir=
andworkdir=
may be omitted. In that case the overlay will be read-only.The specified lower directories will be stacked beginning from the rightmost one and going left. In the above example lower1 will be the top, lower2 the middle and lower3 the bottom layer.